removed id from notes_history, new primary key is note_history_id

This commit is contained in:
azivner
2017-11-02 19:23:52 -04:00
parent 9e3515b122
commit 40e27cd6f7
3 changed files with 28 additions and 3 deletions

View File

@@ -285,8 +285,6 @@ async function updateNoteHistory(entity, sourceId, syncLog) {
if (orig === null || orig.date_modified_to < entity.date_modified_to) {
await sql.doInTransaction(async () => {
delete entity['id'];
await sql.replace('notes_history', entity);
await sql.addNoteHistorySync(entity.note_history_id, sourceId);