mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 15:46:07 -05:00
Merge branch 'master' into fix-count
This commit is contained in:
23
migrations/versions/0038_test_api_key_type.py
Normal file
23
migrations/versions/0038_test_api_key_type.py
Normal file
@@ -0,0 +1,23 @@
|
||||
"""0038_test_api_key_type
|
||||
|
||||
Revision ID: 0038_test_api_key_type
|
||||
Revises: 0037_service_sms_sender
|
||||
Create Date: 2016-07-05 10:28:12.947306
|
||||
|
||||
"""
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '0038_test_api_key_type'
|
||||
down_revision = '0037_service_sms_sender'
|
||||
|
||||
from alembic import op
|
||||
|
||||
|
||||
def upgrade():
|
||||
op.execute("insert into key_types values ('test')")
|
||||
|
||||
|
||||
def downgrade():
|
||||
op.execute("update notifications set key_type = 'normal' where key_type = 'test'")
|
||||
op.execute("update api_keys set key_type = 'normal' where key_type = 'test'")
|
||||
op.execute("delete from key_types where name='test'")
|
||||
Reference in New Issue
Block a user