mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-20 14:29:25 -04:00
reformat
This commit is contained in:
@@ -10,20 +10,23 @@ import uuid
|
||||
from alembic import op
|
||||
from sqlalchemy.sql import text
|
||||
|
||||
revision = '0308_delete_loadtesting_provider'
|
||||
down_revision = '0307_delete_dm_datetime'
|
||||
revision = "0308_delete_loadtesting_provider"
|
||||
down_revision = "0307_delete_dm_datetime"
|
||||
|
||||
|
||||
def upgrade():
|
||||
conn = op.get_bind()
|
||||
conn.execute("DELETE FROM provider_details WHERE identifier = 'loadtesting'")
|
||||
conn.execute("DELETE FROM provider_details_history WHERE identifier = 'loadtesting'")
|
||||
conn.execute(
|
||||
"DELETE FROM provider_details_history WHERE identifier = 'loadtesting'"
|
||||
)
|
||||
|
||||
|
||||
def downgrade():
|
||||
conn = op.get_bind()
|
||||
conn.execute(
|
||||
text("""
|
||||
text(
|
||||
"""
|
||||
INSERT INTO
|
||||
provider_details
|
||||
(id, display_name, identifier, priority, notification_type, active, version, supports_international)
|
||||
@@ -34,6 +37,7 @@ def downgrade():
|
||||
(id, display_name, identifier, priority, notification_type, active, version, supports_international)
|
||||
VALUES
|
||||
(:uuid, 'Loadtesting', 'loadtesting', 100, 'sms', true, 1, false)
|
||||
"""),
|
||||
uuid=uuid.uuid4()
|
||||
"""
|
||||
),
|
||||
uuid=uuid.uuid4(),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user