<?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 Version20220131134739 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 oimmei_phrase ADD mp3_id INT DEFAULT NULL');
$this->addSql('ALTER TABLE oimmei_phrase ADD CONSTRAINT FK_3311EA0587E41685 FOREIGN KEY (mp3_id) REFERENCES upload (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('CREATE INDEX IDX_3311EA0587E41685 ON oimmei_phrase (mp3_id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE oimmei_phrase DROP CONSTRAINT FK_3311EA0587E41685');
$this->addSql('DROP INDEX IDX_3311EA0587E41685');
$this->addSql('ALTER TABLE oimmei_phrase DROP mp3_id');
}
}