mirror of
https://github.com/zadam/trilium.git
synced 2025-11-15 09:45:52 +01:00
add indices on blobId
This commit is contained in:
@@ -156,13 +156,13 @@ class AbstractBeccaEntity {
|
||||
this.save();
|
||||
|
||||
if (newBlobId !== oldBlobId) {
|
||||
this.#deleteBlobIfNoteUsed(oldBlobId);
|
||||
this.#deleteBlobIfNotUsed(oldBlobId);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
#deleteBlobIfNoteUsed(blobId) {
|
||||
#deleteBlobIfNotUsed(blobId) {
|
||||
if (sql.getValue("SELECT 1 FROM notes WHERE blobId = ? LIMIT 1", [blobId])) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ const build = require('./build');
|
||||
const packageJson = require('../../package');
|
||||
const {TRILIUM_DATA_DIR} = require('./data_dir');
|
||||
|
||||
const APP_DB_VERSION = 222;
|
||||
const APP_DB_VERSION = 223;
|
||||
const SYNC_VERSION = 30;
|
||||
const CLIPPER_PROTOCOL_VERSION = "1.0";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user