try again
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-01-08 10:30:51 +11:00
parent c181095197
commit 7ecf27f7dc

View File

@@ -190,7 +190,7 @@ func CreateTables() {
}
// Set any unassigned secrets to the default safe id
if _, err = db.Exec("UPDATE secrets SET SafeId = REPLACE(SafeId,'NULL','1');"); err != nil {
if _, err = db.Exec("UPDATE secrets SET SafeId = 1 WHERE SafeId is null;"); err != nil {
log.Printf("Error setting safe ID of existing secrets : '%s'", err)
os.Exit(1)
}