diff --git a/packages/db/migrations/0084.do.webhook_permission.sql b/packages/db/migrations/0084.do.webhook_permission.sql new file mode 100755 index 000000000..a2e2a7c95 --- /dev/null +++ b/packages/db/migrations/0084.do.webhook_permission.sql @@ -0,0 +1,9 @@ +-- Type: DO +-- Name: webhook_permission +-- Description: webhook table permissions + +BEGIN; + +GRANT SELECT, INSERT, UPDATE, DELETE ON omnivore.webhooks TO omnivore_user; + +COMMIT; diff --git a/packages/db/migrations/0084.undo.webhook_permission.sql b/packages/db/migrations/0084.undo.webhook_permission.sql new file mode 100755 index 000000000..269d9ae27 --- /dev/null +++ b/packages/db/migrations/0084.undo.webhook_permission.sql @@ -0,0 +1,9 @@ +-- Type: UNDO +-- Name: webhook_permission +-- Description: webhook table permissions + +BEGIN; + +REVOKE SELECT, INSERT, UPDATE, DELETE ON omnivore.webhooks FROM omnivore_user; + +COMMIT;