add hideTabRowForOneTab if missing, fixes #660

This commit is contained in:
zadam 2019-10-18 21:04:20 +02:00
parent 21588829c7
commit 157bd3816d
3 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,3 @@
INSERT INTO options (name, value, utcDateCreated, utcDateModified, isSynced)
SELECT 'hideTabRowForOneTab', 'false', '2019-05-01T18:31:00.874Z', '2019-05-01T18:31:00.874Z', 0
WHERE NOT EXISTS(SELECT 1 FROM options WHERE name = 'hideTabRowForOneTab');

View File

@ -4,7 +4,7 @@ const build = require('./build');
const packageJson = require('../../package');
const {TRILIUM_DATA_DIR} = require('./data_dir');
const APP_DB_VERSION = 146;
const APP_DB_VERSION = 147;
const SYNC_VERSION = 10;
const CLIPPER_PROTOCOL_VERSION = "1.0";

View File

@ -82,6 +82,8 @@ async function initNotSyncedOptions(initialized, startNotePath = 'root', opts =
await optionService.createOption('spellCheckEnabled', 'true', false);
await optionService.createOption('spellCheckLanguageCode', 'en-US', false);
await optionService.createOption('hideTabRowForOneTab', 'false', false);
}
module.exports = {