welcome back to dyb-tech

This commit is contained in:
Daniel Guzman
2024-05-18 02:28:01 +02:00
parent 9513cdba09
commit 9f30bc98c7
6149 changed files with 668407 additions and 0 deletions
+35
View File
@@ -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');
}
}