From a2038b0ea35d1466c84e6e04a2e4597fc038815a Mon Sep 17 00:00:00 2001 From: xengineering Date: Thu, 9 May 2024 10:02:00 +0200 Subject: Restructure database-related functions --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index 223a7df..6c123da 100644 --- a/main.go +++ b/main.go @@ -33,9 +33,9 @@ func main() { } log.Printf("Storage directory: %s\n", storage.Path) - model.InitDatabase(filepath.Join(storage.Path, "ceres.sqlite3")) - defer model.CloseDatabase() - + model.ConnectDatabase(filepath.Join(storage.Path, "ceres.sqlite3")) + defer model.DisconnectDatabase() + model.MigrateDatabase() model.InjectTestRecipes() server := NewServer(config.HttpAddress) -- cgit v1.2.3-70-g09d2