mirror of
https://github.com/zadam/trilium.git
synced 2024-09-21 08:06:03 +08:00
drop unnecessary indexes
This commit is contained in:
parent
6e83980784
commit
d57caee0d3
2
db/migrations/0155__remove_unnecessary_indexes.sql
Normal file
2
db/migrations/0155__remove_unnecessary_indexes.sql
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
DROP INDEX IF EXISTS IDX_attributes_name_index;
|
||||||
|
DROP INDEX IF EXISTS IDX_branches_noteId;
|
|
@ -47,8 +47,6 @@ CREATE INDEX `IDX_sync_utcSyncDate` ON `sync` (
|
||||||
);
|
);
|
||||||
CREATE INDEX IDX_attributes_name_value
|
CREATE INDEX IDX_attributes_name_value
|
||||||
on attributes (name, value);
|
on attributes (name, value);
|
||||||
CREATE INDEX IDX_attributes_name_index
|
|
||||||
on attributes (name);
|
|
||||||
CREATE INDEX IDX_attributes_noteId_index
|
CREATE INDEX IDX_attributes_noteId_index
|
||||||
on attributes (noteId);
|
on attributes (noteId);
|
||||||
CREATE INDEX IDX_attributes_value_index
|
CREATE INDEX IDX_attributes_value_index
|
||||||
|
@ -80,7 +78,6 @@ CREATE TABLE IF NOT EXISTS "branches" (
|
||||||
utcDateCreated TEXT NOT NULL,
|
utcDateCreated TEXT NOT NULL,
|
||||||
hash TEXT DEFAULT "" NOT NULL,
|
hash TEXT DEFAULT "" NOT NULL,
|
||||||
PRIMARY KEY(`branchId`));
|
PRIMARY KEY(`branchId`));
|
||||||
CREATE INDEX `IDX_branches_noteId` ON `branches` (`noteId`);
|
|
||||||
CREATE INDEX `IDX_branches_noteId_parentNoteId` ON `branches` (`noteId`,`parentNoteId`);
|
CREATE INDEX `IDX_branches_noteId_parentNoteId` ON `branches` (`noteId`,`parentNoteId`);
|
||||||
CREATE INDEX IDX_branches_parentNoteId ON branches (parentNoteId);
|
CREATE INDEX IDX_branches_parentNoteId ON branches (parentNoteId);
|
||||||
CREATE TABLE IF NOT EXISTS "note_revision_contents" (`noteRevisionId` TEXT NOT NULL PRIMARY KEY,
|
CREATE TABLE IF NOT EXISTS "note_revision_contents" (`noteRevisionId` TEXT NOT NULL PRIMARY KEY,
|
||||||
|
|
|
@ -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 = 154;
|
const APP_DB_VERSION = 155;
|
||||||
const SYNC_VERSION = 12;
|
const SYNC_VERSION = 12;
|
||||||
const CLIPPER_PROTOCOL_VERSION = "1.0";
|
const CLIPPER_PROTOCOL_VERSION = "1.0";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue