DB cleanup migration

This commit is contained in:
zadam 2021-11-18 21:52:56 +01:00
parent 57fae2c8c6
commit 15ac81627c
4 changed files with 5 additions and 5 deletions

View File

@ -0,0 +1,2 @@
ALTER TABLE branches DROP COLUMN utcDateCreated;
ALTER TABLE options DROP COLUMN utcDateCreated;

View File

@ -23,8 +23,7 @@ CREATE TABLE IF NOT EXISTS "branches" (
`isExpanded` INTEGER NOT NULL DEFAULT 0,
`isDeleted` INTEGER NOT NULL DEFAULT 0,
`deleteId` TEXT DEFAULT NULL,
`utcDateModified` TEXT NOT NULL,
utcDateCreated TEXT NOT NULL,
`utcDateModified` TEXT NOT NULL
PRIMARY KEY(`branchId`));
CREATE TABLE IF NOT EXISTS "notes" (
`noteId` TEXT NOT NULL,
@ -65,7 +64,6 @@ CREATE TABLE IF NOT EXISTS "options"
name TEXT not null PRIMARY KEY,
value TEXT,
isSynced INTEGER default 0 not null,
utcDateCreated TEXT not null,
utcDateModified TEXT NOT NULL
);
CREATE TABLE IF NOT EXISTS "attributes"

View File

@ -81,7 +81,7 @@
},
"devDependencies": {
"cross-env": "7.0.3",
"electron": "16.0.0",
"electron": "16.0.1",
"@electron/remote": "2.0.1",
"electron-builder": "22.13.1",
"electron-packager": "15.4.0",

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 = 185;
const APP_DB_VERSION = 186;
const SYNC_VERSION = 21;
const CLIPPER_PROTOCOL_VERSION = "1.0";