mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-16 02:02:13 -05:00
broadcast service permission
it'll eventually be a template type too, so add the _TYPE suffix to the var name to make refactoring easier
This commit is contained in:
21
migrations/versions/0322_broadcast_service_perm.py
Normal file
21
migrations/versions/0322_broadcast_service_perm.py
Normal file
@@ -0,0 +1,21 @@
|
||||
"""
|
||||
|
||||
Revision ID: 0322_broadcast_service_perm
|
||||
Revises: 0321_drop_postage_constraints
|
||||
Create Date: 2020-06-29 11:14:13.183683
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
|
||||
|
||||
revision = '0322_broadcast_service_perm'
|
||||
down_revision = '0321_drop_postage_constraints'
|
||||
|
||||
|
||||
def upgrade():
|
||||
op.execute("INSERT INTO service_permission_types VALUES ('broadcast')")
|
||||
|
||||
|
||||
def downgrade():
|
||||
op.execute("DELETE FROM service_permissions WHERE permission = 'broadcast'")
|
||||
op.execute("DELETE FROM service_permission_types WHERE name = 'broadcast'")
|
||||
Reference in New Issue
Block a user