migrations/Version20260205181300.php line 1

Open in your IDE?
  1. <?php
    
    declare(strict_types=1);
    
    namespace DoctrineMigrations;
    
    use Doctrine\DBAL\Schema\Schema;
    use Doctrine\Migrations\AbstractMigration;
    
    /**
     * Migration: Add art field to course_occurrence_time table
     */
    final class Version20260205181300 extends AbstractMigration
    {
        public function getDescription(): string
        {
            return 'Add art field to course_occurrence_time table (Erster Tag, Folgetag, FUP)';
        }
    
        public function up(Schema $schema): void
        {
            // Add art column to course_occurrence_time (nullable)
            $this->addSql('ALTER TABLE course_occurrence_time ADD art VARCHAR(20) DEFAULT NULL');
        }
    
        public function down(Schema $schema): void
        {
            // Remove art column from course_occurrence_time
            $this->addSql('ALTER TABLE course_occurrence_time DROP COLUMN art');
        }
    }