Enforce foreign keys
This commit is contained in:
parent
c7344a9e37
commit
23d0fe7686
@ -5,7 +5,8 @@ local migrate = require "migrate"
|
|||||||
local DB_FILENAME = "peachy.db"
|
local DB_FILENAME = "peachy.db"
|
||||||
sqlite3 = require "lsqlite3"
|
sqlite3 = require "lsqlite3"
|
||||||
local db = sqlite3.open(DB_FILENAME)
|
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)
|
migrate.migrate(db)
|
||||||
|
|
||||||
fm = require "fullmoon"
|
fm = require "fullmoon"
|
||||||
|
Loading…
Reference in New Issue
Block a user