fixed premission problem after making migrations executed by go
All checks were successful
Tests / Run Go Tests (push) Successful in 1m44s

This commit is contained in:
2026-01-17 21:41:46 +01:00
parent 3322f7e9bc
commit 1daf4db167
11 changed files with 108 additions and 38 deletions

View File

@@ -44,6 +44,13 @@ func main() {
models.DB, err = OpenDatabase()
if err != nil {
slog.Error("Error while opening the database", "Error", err)
return
}
err = Migrate()
if err != nil {
slog.Error("Failed to migrate the database to newest version", "Error", err)
return
}
fs := http.FileServer(http.Dir("./static"))