<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20240925052243 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE TABLE app_project_livrables_devis (id INT AUTO_INCREMENT NOT NULL, livrable_id INT NOT NULL, devis_id INT NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, INDEX IDX_37C35DAD0B0DE44 (livrable_id), INDEX IDX_37C35DA41DEFADA (devis_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE app_project_livrables_devis ADD CONSTRAINT FK_37C35DAD0B0DE44 FOREIGN KEY (livrable_id) REFERENCES app_project_livrables (id)');
$this->addSql('ALTER TABLE app_project_livrables_devis ADD CONSTRAINT FK_37C35DA41DEFADA FOREIGN KEY (devis_id) REFERENCES app_project_devis (id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DROP TABLE app_project_livrables_devis');
}
}