add update endpoint

This commit is contained in:
2023-04-03 09:17:42 +10:00
parent 748f4251e1
commit 931d345ec4
5 changed files with 98 additions and 6 deletions

View File

@@ -150,7 +150,7 @@ func CreateTables() {
fmt.Printf("Error checking schema table : '%s'", err)
os.Exit(1)
}
schemaCheck, _ := CheckColumnExists("schema", "version")
schemaCheck, _ := CheckColumnExists("schema", "Version")
if !schemaCheck {
if _, err = db.Exec("INSERT INTO schema VALUES(1);"); err != nil {
fmt.Printf("Error adding initial scehama version : '%s'", err)