From f089a0d7c3f9862b05afe7b6b7e5d996f1a82bee Mon Sep 17 00:00:00 2001 From: azivner Date: Mon, 23 Oct 2017 23:41:43 -0400 Subject: [PATCH] cleanup of options --- migrations/0005__cleanup_options.sql | 1 + services/migration.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 migrations/0005__cleanup_options.sql diff --git a/migrations/0005__cleanup_options.sql b/migrations/0005__cleanup_options.sql new file mode 100644 index 000000000..1832f28e9 --- /dev/null +++ b/migrations/0005__cleanup_options.sql @@ -0,0 +1 @@ +DELETE FROM options WHERE opt_name IN ('is_readonly', 'prop_modified', 'doc_title', 'doc_UID', 'format_version', 'flask_secret_key') \ No newline at end of file diff --git a/services/migration.js b/services/migration.js index 70c8a9f64..49cac161e 100644 --- a/services/migration.js +++ b/services/migration.js @@ -2,7 +2,7 @@ const backup = require('./backup'); const sql = require('./sql'); const fs = require('fs-extra'); -const APP_DB_VERSION = 4; +const APP_DB_VERSION = 5; const MIGRATIONS_DIR = "./migrations"; async function migrate() {