diff options
author | Simon Rettberg | 2019-03-05 09:53:41 +0100 |
---|---|---|
committer | Simon Rettberg | 2019-03-05 09:53:41 +0100 |
commit | 6976ac880ef90725887e70f58d370d483f832966 (patch) | |
tree | e5b6083dc19e192b26d4b21470bd865957e261da /modules-available/syslog | |
parent | [locationinfo] panel: Shorter dash, empty field if no PCs for room (diff) | |
download | slx-admin-6976ac880ef90725887e70f58d370d483f832966.tar.gz slx-admin-6976ac880ef90725887e70f58d370d483f832966.tar.xz slx-admin-6976ac880ef90725887e70f58d370d483f832966.zip |
[syslog/locationinfo] Fix install script db refs
Diffstat (limited to 'modules-available/syslog')
-rw-r--r-- | modules-available/syslog/install.inc.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules-available/syslog/install.inc.php b/modules-available/syslog/install.inc.php index 9d79c811..d42a4e0e 100644 --- a/modules-available/syslog/install.inc.php +++ b/modules-available/syslog/install.inc.php @@ -31,11 +31,11 @@ if (!tableHasColumn('clientlog', 'machineuuid')) { // 2017-11-03: Create proper index for query in statistics module if (tableHasIndex('clientlog', ['machineuuid'])) { - $r = Database::exec("ALTER TABLE `openslx`.`clientlog` DROP INDEX `machineuuid`"); + $r = Database::exec("ALTER TABLE `clientlog` DROP INDEX `machineuuid`"); $res[] = $r === false ? UPDATE_FAILED : UPDATE_DONE; } if (!tableHasIndex('clientlog', ['machineuuid', 'logid'])) { - $r = Database::exec("ALTER TABLE `openslx`.`clientlog` + $r = Database::exec("ALTER TABLE `clientlog` ADD INDEX `machineuuid` ( `machineuuid` , `logid` )"); $res[] = $r === false ? UPDATE_FAILED : UPDATE_DONE; } |