Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
srv
/
data
/
trash
/
vhost_www.traiteur-75.fr_1689065491
/
htdocs
/
migrations
/
/srv/data/trash/vhost_www.traiteur-75.fr_1689065491/htdocs/migrations/Version20220616155336.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 Version20220616155336 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 command ADD type_id INT NOT NULL'); $this->addSql('ALTER TABLE command ADD CONSTRAINT FK_8ECAEAD4C54C8C93 FOREIGN KEY (type_id) REFERENCES command_type (id)'); $this->addSql('CREATE INDEX IDX_8ECAEAD4C54C8C93 ON command (type_id)'); } public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->addSql('ALTER TABLE command DROP FOREIGN KEY FK_8ECAEAD4C54C8C93'); $this->addSql('DROP INDEX IDX_8ECAEAD4C54C8C93 ON command'); $this->addSql('ALTER TABLE command DROP type_id'); } }