<?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 Version20221204172843 extends AbstractMigration
{
public function getDescription(): string
{
return 'Added previous state to history entry';
}
public function up(Schema $schema): void
{
$this->addSql(
'ALTER TABLE semester_clearances_history ADD previous_type ENUM(\'VALID\', \'INVALIDATED\', \'FROZEN\', \'DELETED\') DEFAULT \'VALID\' COMMENT \'(DC2Type:semester_clearance_type)\''
);
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE semester_clearances_history DROP previous_type');
}
}