From 1476a7216a6b753849f1aca944357d184fed8b73 Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Mon, 6 Nov 2023 12:57:57 +0100 Subject: fix(TextProcessing/ migration): add check whether new column exists already Signed-off-by: Marcel Klehr --- core/Migrations/Version28000Date20231103104802.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'core/Migrations') diff --git a/core/Migrations/Version28000Date20231103104802.php b/core/Migrations/Version28000Date20231103104802.php index 69dddbccee9..aa54f1c5848 100644 --- a/core/Migrations/Version28000Date20231103104802.php +++ b/core/Migrations/Version28000Date20231103104802.php @@ -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; -- cgit v1.2.3