Fix SQL casing and improve error handling

This commit is contained in:
bronku 2025-03-26 13:26:26 +01:00
parent c0227e4e2d
commit 72ed1ae61b
6 changed files with 20 additions and 15 deletions

View file

@ -24,7 +24,7 @@ func (s *Store) loadFile(file string) {
query, _ := migrations.ReadFile("migrations/" + file)
_, err = s.db.Exec(string(query))
if err != nil {
log.Fatal("error executing migration: ", file)
log.Fatal("error executing migration: ", file, err)
}
}