aboutsummaryrefslogtreecommitdiffstats
path: root/core/Migrations/Version28000Date20231103104802.php
diff options
context:
space:
mode:
authorMarcel Klehr <mklehr@gmx.net>2023-11-06 12:57:57 +0100
committerMarcel Klehr <mklehr@gmx.net>2023-11-06 12:57:57 +0100
commit1476a7216a6b753849f1aca944357d184fed8b73 (patch)
tree15e3113b4b94f2c815b77f9a6e4f6ec111df0c07 /core/Migrations/Version28000Date20231103104802.php
parent26a659dc2c4e412cd1e1d3f4bb182440fa9f0973 (diff)
downloadnextcloud-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.php11
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;