Add on the sqlite3 pragmas.

master
Zed A. Shaw 1 week ago
parent 7347e44a29
commit 0f063c4a4d
  1. 6
      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

Loading…
Cancel
Save