trilium/db/migrations/0159__migrate_attr_definitions.sql
2020-06-21 23:41:51 +02:00

2 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';