From 706021a5e76c64cc18ded0a9d59d40e8421dc8c3 Mon Sep 17 00:00:00 2001 From: Samuel W Date: Fri, 10 Jan 2025 16:46:54 +0100 Subject: Update some looks and stuff --- main.go | 1 + 1 file changed, 1 insertion(+) (limited to 'main.go') diff --git a/main.go b/main.go index 03b5474..ae6a684 100644 --- a/main.go +++ b/main.go @@ -61,6 +61,7 @@ func main() { e.Use(session.Middleware(sessions.NewCookieStore([]byte(sessionSecret)))) db, err := gorm.Open(sqlite.Open(dbPath), &gorm.Config{}) + db.Exec("PRAGMA journal_mode=WAL; PRAGMA busy_timeout = 5000;") db.AutoMigrate(Post{}) -- cgit v1.2.3