Configuration > Plan * Settings (parameter plan_task_types). Adds plan_tasks.type for installs created before 0.9.0. The * column is nullable: existing tasks have no type yet, and each one must be given one before it can be * saved again (validation requires it). Runs only when the column is missing. */ class Version_0_9_0 extends AbstractMigration { protected function isApplicable(Schema $schema): bool { $tasks = $this->concatPrefix(Task::TABLE_NAME); if (!$schema->hasTable($tasks)) { return false; } return !$schema->getTable($tasks)->hasColumn('type'); } protected function up(): void { $tasks = $this->concatPrefix(Task::TABLE_NAME); $table = $this->entityManager->getConnection()->createSchemaManager()->introspectTable($tasks); if (!$table->hasColumn('type')) { $this->addSql(sprintf('ALTER TABLE %s ADD type VARCHAR(%d) DEFAULT NULL', $tasks, Task::TYPE_MAX_LENGTH)); } } }