From 206a6dd6e7f2fc17e493fd7d5be2ca0a46064063 Mon Sep 17 00:00:00 2001 From: azivner Date: Thu, 14 Dec 2017 23:38:03 -0500 Subject: [PATCH] set last synced push to avoid full sync after DB upgrade --- migrations/0055__set_last_synced_push.sql | 1 + services/app_info.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 migrations/0055__set_last_synced_push.sql diff --git a/migrations/0055__set_last_synced_push.sql b/migrations/0055__set_last_synced_push.sql new file mode 100644 index 000000000..6c5ab9c84 --- /dev/null +++ b/migrations/0055__set_last_synced_push.sql @@ -0,0 +1 @@ +UPDATE options SET opt_value = (SELECT MAX(id) FROM sync) WHERE opt_name = 'last_synced_push'; \ No newline at end of file diff --git a/services/app_info.js b/services/app_info.js index 58ef0cc55..203e7d43b 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 = 54; +const APP_DB_VERSION = 55; module.exports = { app_version: packageJson.version,