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