mirror of
https://github.com/zadam/trilium.git
synced 2025-12-24 00:59:55 +01:00
fix migration
This commit is contained in:
@@ -12,13 +12,13 @@ create table attributes
|
|||||||
hash TEXT default "" not null);
|
hash TEXT default "" not null);
|
||||||
|
|
||||||
create index IDX_attributes_name_value
|
create index IDX_attributes_name_value
|
||||||
on labels (name, value);
|
on attributes (name, value);
|
||||||
|
|
||||||
create index IDX_attributes_value
|
create index IDX_attributes_value
|
||||||
on labels (value);
|
on attributes (value);
|
||||||
|
|
||||||
create index IDX_attributes_noteId
|
create index IDX_attributes_noteId
|
||||||
on labels (noteId);
|
on attributes (noteId);
|
||||||
|
|
||||||
INSERT INTO attributes (attributeId, noteId, type, name, value, position, dateCreated, dateModified, isDeleted, hash)
|
INSERT INTO attributes (attributeId, noteId, type, name, value, position, dateCreated, dateModified, isDeleted, hash)
|
||||||
SELECT labelId, noteId, 'label', name, value, position, dateCreated, dateModified, isDeleted, hash FROM labels;
|
SELECT labelId, noteId, 'label', name, value, position, dateCreated, dateModified, isDeleted, hash FROM labels;
|
||||||
|
|||||||
Reference in New Issue
Block a user