mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 07:35:34 -05:00
Merge branch 'master' into add-template-version
This commit is contained in:
27
migrations/versions/0013_add_loadtest_client.py
Normal file
27
migrations/versions/0013_add_loadtest_client.py
Normal file
@@ -0,0 +1,27 @@
|
||||
"""empty message
|
||||
|
||||
Revision ID: 0013_add_loadtest_client
|
||||
Revises: 0012_complete_provider_details
|
||||
Create Date: 2016-05-05 09:14:29.328841
|
||||
|
||||
"""
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '0013_add_loadtest_client'
|
||||
down_revision = '0012_complete_provider_details'
|
||||
|
||||
import uuid
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
from sqlalchemy.dialects import postgresql
|
||||
|
||||
def upgrade():
|
||||
|
||||
op.execute(
|
||||
"INSERT INTO provider_details (id, display_name, identifier, priority, notification_type, active) values ('{}', 'Loadtesting', 'loadtesting', 30, 'sms', true)".format(str(uuid.uuid4()))
|
||||
)
|
||||
|
||||
|
||||
def downgrade():
|
||||
op.drop_table('provider_details')
|
||||
Reference in New Issue
Block a user