migrations/Version20220727130845.php line 1
<?phpdeclare(strict_types=1);namespace DoctrineMigrations;use Doctrine\DBAL\Schema\Schema;use Doctrine\Migrations\AbstractMigration;/*** Auto-generated Migration: Please modify to your needs!*/final class Version20220727130845 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 bien_checklist (bien_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', checklist_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', INDEX IDX_7542E097BD95B80F (bien_id), INDEX IDX_7542E097B16D08A7 (checklist_id), PRIMARY KEY(bien_id, checklist_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');$this->addSql('ALTER TABLE bien_checklist ADD CONSTRAINT FK_7542E097BD95B80F FOREIGN KEY (bien_id) REFERENCES bien (id) ON DELETE CASCADE');$this->addSql('ALTER TABLE bien_checklist ADD CONSTRAINT FK_7542E097B16D08A7 FOREIGN KEY (checklist_id) REFERENCES checklist (id) ON DELETE CASCADE');}public function down(Schema $schema): void{// this down() migration is auto-generated, please modify it to your needs$this->addSql('DROP TABLE bien_checklist');}}