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"