mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-02 12:48:32 -04:00
23 lines
528 B
Python
23 lines
528 B
Python
"""
|
|
|
|
Revision ID: 0382_remove_old_sms_providers
|
|
Revises: 0381_encrypted_column_types
|
|
Create Date: 2022-12-16 12:52:14.182717
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
revision = '0382_remove_old_providers'
|
|
down_revision = '0381_encrypted_column_types'
|
|
|
|
|
|
def upgrade():
|
|
op.execute("DELETE FROM provider_details WHERE identifier IN ('mmg', 'firetext')")
|
|
op.execute("DELETE FROM provider_details_history WHERE identifier IN ('mmg', 'firetext')")
|
|
|
|
|
|
def downgrade():
|
|
raise Exception("Irreversible migration")
|