mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Allow UPDATE on the labels table
labels are updated when users change their colour or description.
This commit is contained in:
parent
6d405432af
commit
15cf0d07e9
2 changed files with 18 additions and 0 deletions
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;
|
||||
Loading…
Reference in a new issue