/
home
/
obinna
/
html
/
boazapp
/
migrations
/
Upload File
HOME
<?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 Version20201207200548 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 release_order ADD depot_id_id INT DEFAULT NULL'); $this->addSql('ALTER TABLE release_order ADD CONSTRAINT FK_76B7E1EF19B5CDF0 FOREIGN KEY (depot_id_id) REFERENCES depot (id)'); $this->addSql('CREATE INDEX IDX_76B7E1EF19B5CDF0 ON release_order (depot_id_id)'); } public function down(Schema $schema) : void { // this down() migration is auto-generated, please modify it to your needs $this->addSql('ALTER TABLE release_order DROP FOREIGN KEY FK_76B7E1EF19B5CDF0'); $this->addSql('DROP INDEX IDX_76B7E1EF19B5CDF0 ON release_order'); $this->addSql('ALTER TABLE release_order DROP depot_id_id'); } }