Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
srv
/
data
/
web
/
vhosts
/
716cf56cb2.url-de-test.ws
/
htdocs
/
migrations
/
/srv/data/web/vhosts/716cf56cb2.url-de-test.ws/htdocs/migrations/Version20231129091336.php
<?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 Version20231129091336 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 logement_option (logement_id INT NOT NULL, option_id INT NOT NULL, INDEX IDX_E7CCFA3B58ABF955 (logement_id), INDEX IDX_E7CCFA3BA7C41D6F (option_id), PRIMARY KEY(logement_id, option_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); $this->addSql('ALTER TABLE logement_option ADD CONSTRAINT FK_E7CCFA3B58ABF955 FOREIGN KEY (logement_id) REFERENCES logement (id) ON DELETE CASCADE'); $this->addSql('ALTER TABLE logement_option ADD CONSTRAINT FK_E7CCFA3BA7C41D6F FOREIGN KEY (option_id) REFERENCES `option` (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 logement_option'); } }