mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
change existing labels with name = library to internal
This commit is contained in:
parent
76c77fd9f9
commit
461f44aa0e
2 changed files with 18 additions and 0 deletions
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;
|
||||
Loading…
Reference in a new issue