summaryrefslogtreecommitdiffstats
path: root/modules-available/serversetup-bwlp/install.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2019-01-11 16:48:54 +0100
committerSimon Rettberg2019-01-11 16:48:54 +0100
commit856ff2fa8e9b103ee4033c8ceec3e80af87009bb (patch)
treea6fe34cf6aa1209d26feb7a2be89ea8173432e80 /modules-available/serversetup-bwlp/install.inc.php
parentMerge branch 'master' into ipxe (diff)
downloadslx-admin-856ff2fa8e9b103ee4033c8ceec3e80af87009bb.tar.gz
slx-admin-856ff2fa8e9b103ee4033c8ceec3e80af87009bb.tar.xz
slx-admin-856ff2fa8e9b103ee4033c8ceec3e80af87009bb.zip
[serversetup-bwlp] Decouple location assigning from menu editing
Diffstat (limited to 'modules-available/serversetup-bwlp/install.inc.php')
-rw-r--r--modules-available/serversetup-bwlp/install.inc.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules-available/serversetup-bwlp/install.inc.php b/modules-available/serversetup-bwlp/install.inc.php
index 67d6693f..25579c13 100644
--- a/modules-available/serversetup-bwlp/install.inc.php
+++ b/modules-available/serversetup-bwlp/install.inc.php
@@ -54,7 +54,8 @@ $res[] = tableCreate('serversetup_localboot', "
// Add defaultentry override column
if (!tableHasColumn('serversetup_menu_location', 'defaultentryid')) {
- if (Database::exec('ALTER TABLE serversetup_menu_location ADD COLUMN `defaultentryid` int(11) DEFAULT NULL')) {
+ if (Database::exec('ALTER TABLE serversetup_menu_location ADD COLUMN `defaultentryid` int(11) DEFAULT NULL,
+ ADD KEY `defaultentryid` (`defaultentryid`)') !== false) {
$res[] = UPDATE_DONE;
} else {
$res[] = UPDATE_FAILED;