migrations/Version20220504114204.php line 1
<?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 Version20220504114204 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 game_sound DROP FOREIGN KEY FK_CABDBA0B6AAA5C3E');
$this->addSql('DROP INDEX UNIQ_CABDBA0B6AAA5C3E ON game_sound');
$this->addSql('ALTER TABLE game_sound ADD sound VARCHAR(255) DEFAULT NULL, DROP sound_id');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE game_sound ADD sound_id INT NOT NULL, DROP sound');
$this->addSql('ALTER TABLE game_sound ADD CONSTRAINT FK_CABDBA0B6AAA5C3E FOREIGN KEY (sound_id) REFERENCES media_file (id)');
$this->addSql('CREATE UNIQUE INDEX UNIQ_CABDBA0B6AAA5C3E ON game_sound (sound_id)');
}
}