mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-05 14:48:25 -04:00
more files
This commit is contained in:
@@ -7,6 +7,8 @@ Create Date: 2016-05-05 09:14:29.328841
|
||||
"""
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
from sqlalchemy import text
|
||||
|
||||
revision = '0013_add_loadtest_client'
|
||||
down_revision = '0012_complete_provider_details'
|
||||
|
||||
@@ -16,10 +18,14 @@ 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 upgrade():
|
||||
conn = op.get_bind()
|
||||
input_params = {
|
||||
"id": uuid.uuid4()
|
||||
}
|
||||
conn.execute(
|
||||
text("INSERT INTO provider_details (id, display_name, identifier, priority, notification_type, active) values (:id, 'Loadtesting', 'loadtesting', 30, 'sms', true)"), input_params
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user