replace LdapDN with LdapDn
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-01-10 10:21:58 +11:00
parent 1c3307d43d
commit f8000b749e
4 changed files with 11 additions and 11 deletions

View File

@@ -54,7 +54,7 @@ const createGroups string = `
GroupId INTEGER PRIMARY KEY AUTOINCREMENT,
GroupName VARCHAR,
LdapGroup BOOLEAN DEFAULT 0,
LdapDN VARCHAR DEFAULT '',
LdapDn VARCHAR DEFAULT '',
Admin BOOLEAN DEFAULT 0
);
`
@@ -408,9 +408,9 @@ func CreateTables() {
os.Exit(1)
}
_, err = db.Exec("ALTER TABLE users ADD COLUMN LdapDN VARCHAR DEFAULT '';")
_, err = db.Exec("ALTER TABLE users ADD COLUMN LdapDn VARCHAR DEFAULT '';")
if err != nil {
log.Printf("Error altering users table to add LdapDN column : '%s'\n", err)
log.Printf("Error altering users table to add LdapDn column : '%s'\n", err)
os.Exit(1)
}
}