mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 09:26:08 -05:00
Remove caseworking permission
What became ‘caseworking view’ is now available to all services.
This commit is contained in:
23
migrations/versions/0212_remove_caseworking.py
Normal file
23
migrations/versions/0212_remove_caseworking.py
Normal file
@@ -0,0 +1,23 @@
|
||||
"""
|
||||
|
||||
Revision ID: 0212_remove_caseworking
|
||||
Revises: 0211_email_branding_update
|
||||
Create Date: 2018-07-31 18:00:20.457755
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
|
||||
|
||||
revision = '0212_remove_caseworking'
|
||||
down_revision = '0211_email_branding_update'
|
||||
|
||||
PERMISSION_NAME = "caseworking"
|
||||
|
||||
|
||||
def upgrade():
|
||||
op.execute("delete from service_permissions where permission = '{}'".format(PERMISSION_NAME))
|
||||
op.execute("delete from service_permission_types where name = '{}'".format(PERMISSION_NAME))
|
||||
|
||||
|
||||
def downgrade():
|
||||
op.execute("insert into service_permission_types values('{}')".format(PERMISSION_NAME))
|
||||
Reference in New Issue
Block a user