mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
migration to allow user to delete themseleves
This commit is contained in:
parent
02f0e22cff
commit
7d7b51500c
2 changed files with 18 additions and 0 deletions
9
packages/db/migrations/0086.do.grant_delete_on_user_table.sql
Executable file
9
packages/db/migrations/0086.do.grant_delete_on_user_table.sql
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
-- Type: DO
|
||||
-- Name: grant_delete_on_user_table
|
||||
-- Description: Allows the Omnivore User to delete themselves (for delete account app feature)
|
||||
|
||||
BEGIN;
|
||||
|
||||
GRANT DELETE ON omnivore.user TO omnivore_user;
|
||||
|
||||
COMMIT;
|
||||
9
packages/db/migrations/0086.undo.grant_delete_on_user_table.sql
Executable file
9
packages/db/migrations/0086.undo.grant_delete_on_user_table.sql
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
-- Type: UNDO
|
||||
-- Name: grant_delete_on_user_table
|
||||
-- Description: Allows the Omnivore User to delete themselves (for delete account app feature)
|
||||
|
||||
BEGIN;
|
||||
|
||||
-- do nothing here, there's no reason to undo this migration.
|
||||
|
||||
COMMIT;
|
||||
Loading…
Reference in a new issue