change existing labels with name = library to internal
This commit is contained in:
9
packages/db/migrations/0116.do.update_label_library_internal.sql
Executable file
9
packages/db/migrations/0116.do.update_label_library_internal.sql
Executable 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;
|
||||
9
packages/db/migrations/0116.undo.update_label_library_internal.sql
Executable file
9
packages/db/migrations/0116.undo.update_label_library_internal.sql
Executable 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;
|
||||
Reference in New Issue
Block a user