This commit is contained in:
Kenneth Kehl
2023-08-29 14:54:30 -07:00
parent 19dcd7a48b
commit 1ecb747c6d
588 changed files with 34100 additions and 23589 deletions

View File

@@ -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(),
)