trilium/db/migrations/0160__migrate_attr_definitions.sql

3 lines
196 B
SQL

UPDATE attributes SET type = 'label', name = 'label:' || name WHERE type = 'label-definition';
UPDATE attributes SET type = 'label', name = 'relation:' || name WHERE type = 'relation-definition';