welcome back to dyb-tech
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
<?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 Version20231108232033 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 facility ADD season_id INT DEFAULT NULL');
|
||||
$this->addSql('ALTER TABLE facility ADD CONSTRAINT FK_105994B24EC001D1 FOREIGN KEY (season_id) REFERENCES season (id)');
|
||||
$this->addSql('CREATE INDEX IDX_105994B24EC001D1 ON facility (season_id)');
|
||||
}
|
||||
|
||||
public function down(Schema $schema): void
|
||||
{
|
||||
// this down() migration is auto-generated, please modify it to your needs
|
||||
$this->addSql('ALTER TABLE facility DROP FOREIGN KEY FK_105994B24EC001D1');
|
||||
$this->addSql('DROP INDEX IDX_105994B24EC001D1 ON facility');
|
||||
$this->addSql('ALTER TABLE facility DROP season_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user