forgot to enable the constraints immediatelly after connecting

This commit is contained in:
azivner 2017-12-19 22:24:41 -05:00
parent 5403f340ec
commit 2df81c3a83

View file

@ -16,6 +16,8 @@ const dbConnected = createConnection();
let dbReadyResolve = null;
const dbReady = new Promise((resolve, reject) => {
dbConnected.then(async db => {
await execute("PRAGMA foreign_keys = ON");
dbReadyResolve = () => {
log.info("DB ready.");