initial work on note fulltext (schema changes, updating...)

This commit is contained in:
zadam
2019-03-10 17:02:23 +01:00
parent 05374becfd
commit d25a1e3ed9
11 changed files with 469 additions and 142 deletions

View File

@@ -0,0 +1,10 @@
const repository = require('../../src/services/repository');
const noteFulltextService = require('../../src/services/note_fulltext');
module.exports = async () => {
const notes = await repository.getEntities('SELECT * FROM notes WHERE isDeleted = 0 AND isProtected = 0');
for (const note of notes) {
await noteFulltextService.updateNoteFulltext(note);
}
};