From 6c8decfb30471c3113d1e7b2d347ff05397e706d Mon Sep 17 00:00:00 2001 From: Alexander Walther Date: Wed, 25 Dec 2024 19:25:00 +0100 Subject: [PATCH] Update-Prozess verbessert --- install.php | 4 +--- install/rex_sql_table.php | 3 +++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/install.php b/install.php index 6f32145..366e369 100644 --- a/install.php +++ b/install.php @@ -1,9 +1,7 @@ exists()) { - rex_sql::factory()->setQuery('update rex_event_date set uid = uuid() where uid =""'); -} +include_once(__DIR__.'/install/rex_sq_table.php'); /* Tablesets aktualisieren */ if (rex_addon::get('yform') && rex_addon::get('yform')->isAvailable()) { diff --git a/install/rex_sql_table.php b/install/rex_sql_table.php index 6f0ffc9..b57f6da 100644 --- a/install/rex_sql_table.php +++ b/install/rex_sql_table.php @@ -186,3 +186,6 @@ ->ensureIndex(new rex_sql_index('uuid', ['uuid'], rex_sql_index::UNIQUE)) ->ensureIndex(new rex_sql_index('email', ['email'])) ->ensure(); + +@rex_sql::factory()->setQuery('update rex_event_date set uuid = uid() where uid != "" and uuid = ""'); +@rex_sql::factory()->setQuery('update rex_event_date set uuid = uuid() where uuid =""');