From cf8c1c378a92a0ac072c3da829a6f4c081695e98 Mon Sep 17 00:00:00 2001 From: Mark Unwin Date: Mon, 9 Sep 2024 09:28:16 +1000 Subject: [PATCH] Remove ldap_serves from SQL schema. --- app/Models/db_upgrades/db_5.5.0.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/Models/db_upgrades/db_5.5.0.php b/app/Models/db_upgrades/db_5.5.0.php index 779a9a230..010851abc 100644 --- a/app/Models/db_upgrades/db_5.5.0.php +++ b/app/Models/db_upgrades/db_5.5.0.php @@ -116,6 +116,13 @@ log_message('info', (string)$db->getLastQuery()); } +if ($db->tableExists('ldap_servers')) { + $sql = "DROP TABLE `ldap_servers`"; + $db->query($sql); + $output .= str_replace("\n", " ", (string)$db->getLastQuery()) . "\n\n"; + log_message('info', (string)$db->getLastQuery()); +} + if (!$db->fieldExists('last_os_update', 'devices')) { $sql = "ALTER TABLE `devices` ADD last_os_update datetime NOT NULL DEFAULT '2000-01-01 00:00:00' AFTER `last_user`"; $db->query($sql);