trilium/db/migrations/0160__migrate_attr_definitions.sql

3 lines
196 B
MySQL
Raw Normal View History

2020-06-22 05:41:51 +08:00
UPDATE attributes SET type = 'label', name = 'label:' || name WHERE type = 'label-definition';
UPDATE attributes SET type = 'label', name = 'relation:' || name WHERE type = 'relation-definition';