Skip to content

Build your personal knowledge base with Trilium Notes

fixed saved note migration - need to be migrated as last, #1647

zadam5542c9dc5769
diff --git a/db/migrations/0172__migrate_saved_search_notes.js b/db/migrations/0183__migrate_saved_search_notes.js
similarity index 91%
rename from db/migrations/0172__migrate_saved_search_notes.js
rename to db/migrations/0183__migrate_saved_search_notes.js
index 833fba3854..4cd7d4968d 100644
--- a/db/migrations/0172__migrate_saved_search_notes.js
+++ b/db/migrations/0183__migrate_saved_search_notes.js
@@ -15,6 +15,8 @@ module.exports = () => {
note.mime = 'text/plain';
note.save();
+
+ console.log(`Migrated search note ${note.noteId}`);
}
catch (e) {
console.log(`Changing note content for note ${note.noteId} failed with: ${e.message} ${e.stack}`);
diff --git a/src/services/app_info.js b/src/services/app_info.js
index b3fcd9a734..ecd44e059e 100644
--- a/src/services/app_info.js
+++ b/src/services/app_info.js
@@ -4,7 +4,7 @@ const build = require('./build');
const packageJson = require('../../package');
const {TRILIUM_DATA_DIR} = require('./data_dir');
-const APP_DB_VERSION = 182;
+const APP_DB_VERSION = 183;
const SYNC_VERSION = 20;
const CLIPPER_PROTOCOL_VERSION = "1.0";