more testing
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-01-08 10:10:19 +11:00
parent d8da3027e2
commit 9a107bc4ba

View File

@@ -28,7 +28,6 @@ const createRoles string = `
RoleName VARCHAR,
ReadOnly BOOLEAN,
Admin BOOLEAN,
LdapGroup VARCHAR DEFAULT ''
);
`
@@ -247,6 +246,16 @@ func CreateTables() {
}
}
// Remove LdapGroup column from roles table
ldapCheck, _ := CheckColumnExists("roles", "LdapGroup")
if ldapCheck {
_, err := db.Exec("ALTER TABLE roles DROP COLUMN LdapGroup;")
if err != nil {
log.Printf("Error altering roles table to renmove LdapGroup column : '%s'\n", err)
os.Exit(1)
}
}
/*
// Database updates added after initial version released
ldapCheck, _ := CheckColumnExists("roles", "LdapGroup")