Enforce foreign keys

This commit is contained in:
Brandon Dyck 2024-07-06 13:14:08 -06:00
parent c7344a9e37
commit 23d0fe7686

View File

@ -5,7 +5,8 @@ local migrate = require "migrate"
local DB_FILENAME = "peachy.db"
sqlite3 = require "lsqlite3"
local db = sqlite3.open(DB_FILENAME)
db:exec("PRAGMA journal_mode=WAL;")
db:exec("PRAGMA journal_mode=WAL")
db:exec("PRAGMA foreign_keys")
migrate.migrate(db)
fm = require "fullmoon"