29 lines
831 B
PHP
29 lines
831 B
PHP
<?php
|
|
|
|
namespace DoctrineMigrations;
|
|
|
|
use Doctrine\DBAL\Schema\Schema;
|
|
use Doctrine\Migrations\AbstractMigration;
|
|
|
|
/**
|
|
* Drop the unused distribution_mode column from scenario (#61).
|
|
*/
|
|
final class Version20260627065959 extends AbstractMigration
|
|
{
|
|
public function getDescription(): string
|
|
{
|
|
return 'Drop the unused distribution_mode column from scenario (no consumer; #61).';
|
|
}
|
|
|
|
public function up(Schema $schema): void
|
|
{
|
|
$this->addSql('ALTER TABLE scenario DROP distribution_mode');
|
|
}
|
|
|
|
public function down(Schema $schema): void
|
|
{
|
|
// Assumes an empty table (the column was always empty/unused); the
|
|
// NOT NULL re-add would fail on any pre-existing populated rows.
|
|
$this->addSql('ALTER TABLE scenario ADD distribution_mode VARCHAR(255) NOT NULL');
|
|
}
|
|
}
|