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