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/Version20231207085112.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 Version20231207085112 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('ALTER TABLE ical ADD logement_id INT DEFAULT NULL'); $this->addSql('ALTER TABLE ical ADD CONSTRAINT FK_1519657958ABF955 FOREIGN KEY (logement_id) REFERENCES logement (id)'); $this->addSql('CREATE INDEX IDX_1519657958ABF955 ON ical (logement_id)'); } public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->addSql('ALTER TABLE ical DROP FOREIGN KEY FK_1519657958ABF955'); $this->addSql('DROP INDEX IDX_1519657958ABF955 ON ical'); $this->addSql('ALTER TABLE ical DROP logement_id'); } }