change existing labels with name = library to internal

This commit is contained in:
Hongbo Wu
2023-07-18 15:39:54 +08:00
parent 76c77fd9f9
commit 461f44aa0e
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,9 @@
-- Type: DO
-- Name: update_label_library_internal
-- Description: Update labels table and change labels with name library to internal
BEGIN;
UPDATE omnivore.labels SET internal = true WHERE LOWER(name) = 'library';
COMMIT;

View File

@ -0,0 +1,9 @@
-- Type: UNDO
-- Name: update_label_library_internal
-- Description: Update labels table and change labels with name library to internal
BEGIN;
UPDATE omnivore.labels SET internal = false WHERE LOWER(name) = 'library';
COMMIT;