diff options
author | Simon Rettberg | 2019-07-03 09:19:57 +0200 |
---|---|---|
committer | Simon Rettberg | 2019-07-03 09:58:11 +0200 |
commit | 95da055fc5a82e5cc6c63df02b1993bda9b67634 (patch) | |
tree | 80966313aaaaa17c111780be39b6b29528f73229 /modules-available/news/install.inc.php | |
parent | [locationinfo] fix bug 'open for' without times (diff) | |
download | slx-admin-95da055fc5a82e5cc6c63df02b1993bda9b67634.tar.gz slx-admin-95da055fc5a82e5cc6c63df02b1993bda9b67634.tar.xz slx-admin-95da055fc5a82e5cc6c63df02b1993bda9b67634.zip |
[install.php] tableHasIndex -> tableGetIndex
Diffstat (limited to 'modules-available/news/install.inc.php')
-rw-r--r-- | modules-available/news/install.inc.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules-available/news/install.inc.php b/modules-available/news/install.inc.php index 43336290..88a20749 100644 --- a/modules-available/news/install.inc.php +++ b/modules-available/news/install.inc.php @@ -32,11 +32,11 @@ $res[] = tableCreate('vmchooser_pages', " KEY `all3` (`type`, `expires`, `dateline`) "); -if (tableHasIndex('vmchooser_pages', ['dateline'])) { +if (tableGetIndex('vmchooser_pages', ['dateline']) !== false) { Database::exec('ALTER TABLE vmchooser_pages DROP KEY `dateline`'); Database::exec('ALTER TABLE vmchooser_pages ADD KEY `type` (`type`, `dateline`)'); } -if (!tableHasIndex('vmchooser_pages', ['type', 'expires', 'dateline'])) { +if (tableGetIndex('vmchooser_pages', ['type', 'expires', 'dateline']) === false) { Database::exec('ALTER TABLE vmchooser_pages ADD KEY `all3` (`type`, `expires`, `dateline`)'); } if (!tableHasColumn('vmchooser_pages', 'expires')) { |