Skip to content

Commit

Permalink
Update-Prozess verbessert
Browse files Browse the repository at this point in the history
  • Loading branch information
alxndr-w committed Dec 25, 2024
1 parent 6f60443 commit 6c8decf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 1 addition & 3 deletions install.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
<?php
$addon = rex_addon::get('events');

if (rex_sql_table::get(rex::getTable('event_date'))->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()) {
Expand Down
3 changes: 3 additions & 0 deletions install/rex_sql_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 =""');

0 comments on commit 6c8decf

Please sign in to comment.