summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorSamuel W <samuel.wilhelmsson@gmail.com>2025-01-10 16:46:54 +0100
committerSamuel W <samuel.wilhelmsson@gmail.com>2025-01-10 16:46:54 +0100
commit706021a5e76c64cc18ded0a9d59d40e8421dc8c3 (patch)
tree530c10521d088e7f8b6268b45960036cd2285914 /main.go
parent191e2ddf095a5e57b33caf4a9235c686a462232c (diff)
downloadtinygram-706021a5e76c64cc18ded0a9d59d40e8421dc8c3.tar.gz
tinygram-706021a5e76c64cc18ded0a9d59d40e8421dc8c3.zip
Update some looks and stuff
Diffstat (limited to 'main.go')
-rw-r--r--main.go1
1 files changed, 1 insertions, 0 deletions
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{})