From 2e11494cac8f3a0ed39557a0fa11f52fe82c5913 Mon Sep 17 00:00:00 2001 From: azivner Date: Thu, 14 Dec 2017 22:47:55 -0500 Subject: [PATCH] filling up missing sync rows --- migrations/0052__fill_sync_table.sql | 8 ++++++++ services/app_info.js | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 migrations/0052__fill_sync_table.sql diff --git a/migrations/0052__fill_sync_table.sql b/migrations/0052__fill_sync_table.sql new file mode 100644 index 000000000..86787275e --- /dev/null +++ b/migrations/0052__fill_sync_table.sql @@ -0,0 +1,8 @@ +INSERT OR IGNORE INTO sync (entity_name, entity_id, sync_date, source_id) + SELECT 'notes', note_id, strftime('%Y-%m-%dT%H:%M:%S.000Z', 'now'), 'IMPORT' FROM notes; + +INSERT OR IGNORE INTO sync (entity_name, entity_id, sync_date, source_id) + SELECT 'notes_tree', note_tree_id, strftime('%Y-%m-%dT%H:%M:%S.000Z', 'now'), 'IMPORT' FROM notes_tree; + +INSERT OR IGNORE INTO sync (entity_name, entity_id, sync_date, source_id) + SELECT 'notes_history', note_history_id, strftime('%Y-%m-%dT%H:%M:%S.000Z', 'now'), 'IMPORT' FROM notes_history; \ No newline at end of file diff --git a/services/app_info.js b/services/app_info.js index 60a9b2d9b..cdf1e0b58 100644 --- a/services/app_info.js +++ b/services/app_info.js @@ -3,7 +3,7 @@ const build = require('./build'); const packageJson = require('../package'); -const APP_DB_VERSION = 51; +const APP_DB_VERSION = 52; module.exports = { app_version: packageJson.version,