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:
Leo Hemsted
2020-06-29 11:53:57 +01:00
parent a0a5cde15e
commit 63f6d8df6b
2 changed files with 23 additions and 0 deletions

View 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'")