From 7e9138a4f19a8fda851040f9d03a2cde75fdd8d3 Mon Sep 17 00:00:00 2001 From: kyteinsky Date: Thu, 20 Aug 2026 19:46:58 +0530 Subject: [PATCH] fix: make ex_translation migration idempotent Signed-off-by: kyteinsky --- lib/Migration/Version2200Date20240216164351.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/Migration/Version2200Date20240216164351.php b/lib/Migration/Version2200Date20240216164351.php index e7fe61e0c..a60e04887 100644 --- a/lib/Migration/Version2200Date20240216164351.php +++ b/lib/Migration/Version2200Date20240216164351.php @@ -25,11 +25,13 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt if ($schema->hasTable('ex_translation')) { $table = $schema->getTable('ex_translation'); - $table->addColumn('action_detect_lang', Types::STRING, [ - 'notnull' => false, - 'length' => 410, - 'default' => '', - ]); + if (!$table->hasColumn('action_detect_lang')) { + $table->addColumn('action_detect_lang', Types::STRING, [ + 'notnull' => false, + 'length' => 410, + 'default' => '', + ]); + } } return $schema;