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