<?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 Version20220909105439 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 object_detail ADD oclub VARCHAR(100) DEFAULT NULL');
$this->addSql('ALTER TABLE object_detail ADD CONSTRAINT FK_6086DF9344EAF0EF FOREIGN KEY (oclub) REFERENCES parameter_value (code)');
$this->addSql('CREATE INDEX IDX_6086DF9344EAF0EF ON object_detail (oclub)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE object_detail DROP FOREIGN KEY FK_6086DF9344EAF0EF');
$this->addSql('DROP INDEX IDX_6086DF9344EAF0EF ON object_detail');
$this->addSql('ALTER TABLE object_detail DROP oclub');
}
}