From eb3a1e9d5da2dbf59a865717680590dc831abcaa 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 5e1358733..05c535e5a 100644 --- a/lib/Migration/Version2200Date20240216164351.php +++ b/lib/Migration/Version2200Date20240216164351.php @@ -30,11 +30,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;