fix(TextProcessing/ migration): add check whether new column exists already

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
pull/41271/head
Marcel Klehr 6 months ago
parent 26a659dc2c
commit 1476a7216a

@ -48,11 +48,12 @@ class Version28000Date20231103104802 extends SimpleMigrationStep {
if ($schema->hasTable('textprocessing_tasks')) {
$table = $schema->getTable('textprocessing_tasks');
$table->addColumn('completion_expected_at', Types::DATETIME, [
'notnull' => false,
]);
return $schema;
if (!$table->hasColumn('completion_expected_at')) {
$table->addColumn('completion_expected_at', Types::DATETIME, [
'notnull' => false,
]);
return $schema;
}
}
return null;

Loading…
Cancel
Save