Skip to content

Commit

Permalink
Remove ldap_serves from SQL schema.
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-unwin committed Sep 8, 2024
1 parent e0ce3f2 commit cf8c1c3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/Models/db_upgrades/db_5.5.0.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit cf8c1c3

Please sign in to comment.