another fix
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-01-16 15:18:42 +11:00
parent 2c63ea9632
commit 8fec84c118

View File

@@ -275,6 +275,12 @@ func CreateTables() {
}
}
// Set any unassigned secrets to the default safe id
if _, err = db.Exec("UPDATE users SET LdapUser = 0 WHERE LdapUser is null;"); err != nil {
log.Printf("Error setting LdapUser flag to false for existing users : '%s'", err)
os.Exit(1)
}
// Remove LdapGroup column from roles table
ldapCheck, _ := CheckColumnExists("roles", "LdapGroup")
if ldapCheck {