diff options
author | Marcel Klehr <mklehr@gmx.net> | 2023-11-06 12:57:57 +0100 |
---|---|---|
committer | Marcel Klehr <mklehr@gmx.net> | 2023-11-06 12:57:57 +0100 |
commit | 1476a7216a6b753849f1aca944357d184fed8b73 (patch) | |
tree | 15e3113b4b94f2c815b77f9a6e4f6ec111df0c07 /core/Migrations/Version28000Date20231103104802.php | |
parent | 26a659dc2c4e412cd1e1d3f4bb182440fa9f0973 (diff) | |
download | nextcloud-server-1476a7216a6b753849f1aca944357d184fed8b73.tar.gz nextcloud-server-1476a7216a6b753849f1aca944357d184fed8b73.zip |
fix(TextProcessing/ migration): add check whether new column exists already
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Diffstat (limited to 'core/Migrations/Version28000Date20231103104802.php')
-rw-r--r-- | core/Migrations/Version28000Date20231103104802.php | 11 |
1 files changed, 6 insertions, 5 deletions
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; |