<?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 Version20211025063408 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 order_movement DROP FOREIGN KEY FK_15257746B0653254');
$this->addSql('DROP INDEX IDX_15257746B0653254 ON order_movement');
$this->addSql('ALTER TABLE order_movement DROP destination_service_id');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE order_movement ADD destination_service_id INT DEFAULT NULL');
$this->addSql('ALTER TABLE order_movement ADD CONSTRAINT FK_15257746B0653254 FOREIGN KEY (destination_service_id) REFERENCES destination_service (id)');
$this->addSql('CREATE INDEX IDX_15257746B0653254 ON order_movement (destination_service_id)');
}
}