mirror of
https://github.com/zadam/trilium.git
synced 2024-12-25 08:43:03 +08:00
forgot to enable the constraints immediatelly after connecting
This commit is contained in:
parent
5403f340ec
commit
2df81c3a83
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue