mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
fix direct migration from 0.30 to 0.32, closes #557
This commit is contained in:
parent
b389ec5ea3
commit
19a154c2f4
@ -62,6 +62,7 @@ async function cleanupSyncRowsForMissingEntities(entityName, entityKey) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function fillSyncRows(entityName, entityKey, condition = '') {
|
async function fillSyncRows(entityName, entityKey, condition = '') {
|
||||||
|
try {
|
||||||
await cleanupSyncRowsForMissingEntities(entityName, entityKey);
|
await cleanupSyncRowsForMissingEntities(entityName, entityKey);
|
||||||
|
|
||||||
const entityIds = await sql.getColumn(`SELECT ${entityKey} FROM ${entityName}`
|
const entityIds = await sql.getColumn(`SELECT ${entityKey} FROM ${entityName}`
|
||||||
@ -82,6 +83,12 @@ async function fillSyncRows(entityName, entityKey, condition = '') {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
catch (e) {
|
||||||
|
// this is to fix migration from 0.30 to 0.32, can be removed later
|
||||||
|
// see https://github.com/zadam/trilium/issues/557
|
||||||
|
log.error(`Filling sync rows failed for ${entityName} ${entityKey} with error "${e.message}", continuing`);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async function fillAllSyncRows() {
|
async function fillAllSyncRows() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user