From 0f063c4a4df030b3ca670aed5a2c8d10591b4571 Mon Sep 17 00:00:00 2001 From: "Zed A. Shaw" Date: Sun, 31 Aug 2025 10:21:30 -0400 Subject: [PATCH] Add on the sqlite3 pragmas. --- migrations/20250802154952_init.sql | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/migrations/20250802154952_init.sql b/migrations/20250802154952_init.sql index 7f0cc42..0aea787 100644 --- a/migrations/20250802154952_init.sql +++ b/migrations/20250802154952_init.sql @@ -1,6 +1,12 @@ -- +goose Up -- +goose StatementBegin CREATE TABLE user (id INTEGER PRIMARY KEY, username TEXT UNIQUE NOT NULL, email TEXT UNIQUE, password TEXT NOT NULL); +PRAGMA foreign_keys = ON; +PRAGMA journal_mode = WAL; +PRAGMA synchronous = NORMAL; +PRAGMA mmap_size = 134217728; -- 128 megabytes +PRAGMA journal_size_limig = 67108864; -- 64 megabytes +PRAGMA cache_size = 2000; -- +goose StatementEnd -- +goose Down