From 23d0fe768630d5832a28429b27864670988a1366 Mon Sep 17 00:00:00 2001 From: Brandon Dyck Date: Sat, 6 Jul 2024 13:14:08 -0600 Subject: [PATCH] Enforce foreign keys --- assets/.init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/.init.lua b/assets/.init.lua index c0c2a32..92904e8 100644 --- a/assets/.init.lua +++ b/assets/.init.lua @@ -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"