Skip to content

Build your personal knowledge base with Trilium Notes

fix migration

azivner35ef3c847083
diff --git a/db/migrations/0109__create_attributes.sql b/db/migrations/0109__create_attributes.sql
index 2866150145..526a446e7f 100644
--- a/db/migrations/0109__create_attributes.sql
+++ b/db/migrations/0109__create_attributes.sql
@@ -12,13 +12,13 @@ create table attributes
hash TEXT default "" not null);
create index IDX_attributes_name_value
- on labels (name, value);
+ on attributes (name, value);
create index IDX_attributes_value
- on labels (value);
+ on attributes (value);
create index IDX_attributes_noteId
- on labels (noteId);
+ on attributes (noteId);
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;