<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Migration: Add status field to course_occurrence table
*/
final class Version20260205173900 extends AbstractMigration
{
public function getDescription(): string
{
return 'Add status field to course_occurrence table with default value "planmäßig"';
}
public function up(Schema $schema): void
{
// Add status column with default value
$this->addSql('ALTER TABLE course_occurrence ADD status VARCHAR(20) NOT NULL DEFAULT \'planmäßig\'');
}
public function down(Schema $schema): void
{
// Remove status column
$this->addSql('ALTER TABLE course_occurrence DROP COLUMN status');
}
}