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/Version20240115142950.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 Version20240115142950 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 equipment_logement (equipment_id INT NOT NULL, logement_id INT NOT NULL, INDEX IDX_C03EC071517FE9FE (equipment_id), INDEX IDX_C03EC07158ABF955 (logement_id), PRIMARY KEY(equipment_id, logement_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); $this->addSql('ALTER TABLE equipment_logement ADD CONSTRAINT FK_C03EC071517FE9FE FOREIGN KEY (equipment_id) REFERENCES equipment (id) ON DELETE CASCADE'); $this->addSql('ALTER TABLE equipment_logement ADD CONSTRAINT FK_C03EC07158ABF955 FOREIGN KEY (logement_id) REFERENCES logement (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 equipment_logement'); } }