A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
refactor: migrate notes at the end
thecodrr2bb3bc1a6d95
diff --git a/packages/core/api/migrations.js b/packages/core/api/migrations.jsindex 4fefdaadc..83457084c 100644--- a/packages/core/api/migrations.js+++ b/packages/core/api/migrations.js@@ -24,10 +24,6 @@ class Migrations {const content = await this._db.content.all();const collections = [- {- index: this._db.notes.raw,- dbCollection: this._db.notes,- },{index: this._db.notebooks.raw,dbCollection: this._db.notebooks,@@ -53,6 +49,10 @@ class Migrations {dbCollection: this._db.settings,type: "settings",},+ {+ index: this._db.notes.raw,+ dbCollection: this._db.notes,+ },];await this._migrator.migrate(collections, (item) => item, this.dbVersion);await this._db.context.write("v", CURRENT_DATABASE_VERSION);diff --git a/packages/core/models/note.js b/packages/core/models/note.jsindex 85a624802..0eb3cc50f 100644--- a/packages/core/models/note.js+++ b/packages/core/models/note.js@@ -43,6 +43,10 @@ export default class Note {return this._note.notebooks;}+ get deleted() {+ return this._note.deleted;+ }+get dateEdited() {return this._note.dateEdited;}