mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 10:21:14 -05:00
Add a service permission for uploading documents to Document Download
Service permission allows attaching a file to a notification API request that gets uploaded to Document Download API.
This commit is contained in:
24
migrations/versions/0182_add_upload_document_perm.py
Normal file
24
migrations/versions/0182_add_upload_document_perm.py
Normal file
@@ -0,0 +1,24 @@
|
||||
"""empty message
|
||||
|
||||
Revision ID: 0182_add_upload_document_perm
|
||||
Revises: 0181_billing_primary_key
|
||||
Create Date: 2018-03-23 16:20:00
|
||||
|
||||
"""
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '0182_add_upload_document_perm'
|
||||
down_revision = '0181_billing_primary_key'
|
||||
|
||||
from alembic import op
|
||||
|
||||
|
||||
def upgrade():
|
||||
op.get_bind()
|
||||
op.execute("insert into service_permission_types values('upload_document')")
|
||||
|
||||
|
||||
def downgrade():
|
||||
op.get_bind()
|
||||
op.execute("delete from service_permissions where permission = 'upload_document'")
|
||||
op.execute("delete from service_permission_types where name = 'upload_document'")
|
||||
Reference in New Issue
Block a user