mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
fix migration
This commit is contained in:
parent
5117d43e29
commit
35ef3c8470
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user