fixed premission problem after making migrations executed by go
All checks were successful
Tests / Run Go Tests (push) Successful in 1m44s
All checks were successful
Tests / Run Go Tests (push) Successful in 1m44s
This commit is contained in:
@@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user