mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
DB cleanup migration
This commit is contained in:
parent
57fae2c8c6
commit
15ac81627c
@ -0,0 +1,2 @@
|
|||||||
|
ALTER TABLE branches DROP COLUMN utcDateCreated;
|
||||||
|
ALTER TABLE options DROP COLUMN utcDateCreated;
|
@ -23,8 +23,7 @@ CREATE TABLE IF NOT EXISTS "branches" (
|
|||||||
`isExpanded` INTEGER NOT NULL DEFAULT 0,
|
`isExpanded` INTEGER NOT NULL DEFAULT 0,
|
||||||
`isDeleted` INTEGER NOT NULL DEFAULT 0,
|
`isDeleted` INTEGER NOT NULL DEFAULT 0,
|
||||||
`deleteId` TEXT DEFAULT NULL,
|
`deleteId` TEXT DEFAULT NULL,
|
||||||
`utcDateModified` TEXT NOT NULL,
|
`utcDateModified` TEXT NOT NULL
|
||||||
utcDateCreated TEXT NOT NULL,
|
|
||||||
PRIMARY KEY(`branchId`));
|
PRIMARY KEY(`branchId`));
|
||||||
CREATE TABLE IF NOT EXISTS "notes" (
|
CREATE TABLE IF NOT EXISTS "notes" (
|
||||||
`noteId` TEXT NOT NULL,
|
`noteId` TEXT NOT NULL,
|
||||||
@ -65,7 +64,6 @@ CREATE TABLE IF NOT EXISTS "options"
|
|||||||
name TEXT not null PRIMARY KEY,
|
name TEXT not null PRIMARY KEY,
|
||||||
value TEXT,
|
value TEXT,
|
||||||
isSynced INTEGER default 0 not null,
|
isSynced INTEGER default 0 not null,
|
||||||
utcDateCreated TEXT not null,
|
|
||||||
utcDateModified TEXT NOT NULL
|
utcDateModified TEXT NOT NULL
|
||||||
);
|
);
|
||||||
CREATE TABLE IF NOT EXISTS "attributes"
|
CREATE TABLE IF NOT EXISTS "attributes"
|
||||||
|
@ -81,7 +81,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"cross-env": "7.0.3",
|
"cross-env": "7.0.3",
|
||||||
"electron": "16.0.0",
|
"electron": "16.0.1",
|
||||||
"@electron/remote": "2.0.1",
|
"@electron/remote": "2.0.1",
|
||||||
"electron-builder": "22.13.1",
|
"electron-builder": "22.13.1",
|
||||||
"electron-packager": "15.4.0",
|
"electron-packager": "15.4.0",
|
||||||
|
@ -4,7 +4,7 @@ const build = require('./build');
|
|||||||
const packageJson = require('../../package');
|
const packageJson = require('../../package');
|
||||||
const {TRILIUM_DATA_DIR} = require('./data_dir');
|
const {TRILIUM_DATA_DIR} = require('./data_dir');
|
||||||
|
|
||||||
const APP_DB_VERSION = 185;
|
const APP_DB_VERSION = 186;
|
||||||
const SYNC_VERSION = 21;
|
const SYNC_VERSION = 21;
|
||||||
const CLIPPER_PROTOCOL_VERSION = "1.0";
|
const CLIPPER_PROTOCOL_VERSION = "1.0";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user