mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
forgot to enable the constraints immediatelly after connecting
This commit is contained in:
parent
5403f340ec
commit
2df81c3a83
@ -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.");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user