Allow UPDATE on the labels table
labels are updated when users change their colour or description.
This commit is contained in:
9
packages/db/migrations/0077.do.grant_update_permission_on_labels.sql
Executable file
9
packages/db/migrations/0077.do.grant_update_permission_on_labels.sql
Executable file
@ -0,0 +1,9 @@
|
||||
-- Type: DO
|
||||
-- Name: grant_update_permission_on_labels
|
||||
-- Description: Add the update permission on labels
|
||||
|
||||
BEGIN;
|
||||
|
||||
GRANT UPDATE ON omnivore.link_labels TO omnivore_user;
|
||||
|
||||
COMMIT;
|
||||
9
packages/db/migrations/0077.undo.grant_update_permission_on_labels.sql
Executable file
9
packages/db/migrations/0077.undo.grant_update_permission_on_labels.sql
Executable file
@ -0,0 +1,9 @@
|
||||
-- Type: UNDO
|
||||
-- Name: grant_update_permission_on_labels
|
||||
-- Description: Add the update permission on labels
|
||||
|
||||
BEGIN;
|
||||
|
||||
REVOKE UPDATE ON omnivore.link_labels FROM omnivore_user;
|
||||
|
||||
COMMIT;
|
||||
Reference in New Issue
Block a user