diff options
| author | Simon Rettberg | 2025-04-22 15:26:26 +0200 |
|---|---|---|
| committer | Simon Rettberg | 2025-04-22 15:26:26 +0200 |
| commit | da8f40d19443f6726f99924c13e8d0aa10a4f51b (patch) | |
| tree | 8c20925e12edecce7f05c95b251e1593a8385576 /modules-available | |
| parent | [inc/Database] Wait for db server on connection error (diff) | |
| download | slx-admin-da8f40d19443f6726f99924c13e8d0aa10a4f51b.tar.gz slx-admin-da8f40d19443f6726f99924c13e8d0aa10a4f51b.tar.xz slx-admin-da8f40d19443f6726f99924c13e8d0aa10a4f51b.zip | |
[news] Defensive update, disappearing news mystery
Much mystery, no smoking gun.
Diffstat (limited to 'modules-available')
| -rw-r--r-- | modules-available/news/install.inc.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules-available/news/install.inc.php b/modules-available/news/install.inc.php index a60f7748..93701620 100644 --- a/modules-available/news/install.inc.php +++ b/modules-available/news/install.inc.php @@ -54,6 +54,7 @@ if (!tableHasColumn('vmchooser_pages', 'locationid')) { Database::exec('ALTER TABLE vmchooser_pages MODIFY `type` varchar(10) CHARACTER SET ascii NOT NULL'); +Database::exec('UPDATE vmchooser_pages SET locationid = NULL WHERE locationid = 0'); $dbret[] = tableAddConstraint('vmchooser_pages', 'locationid', 'location', 'locationid', 'ON UPDATE CASCADE ON DELETE CASCADE'); |
