mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 07:35:34 -05:00
Clean up more mmg and firetext references
This commit is contained in:
22
migrations/versions/0382_remove_old_sms_providers_.py
Normal file
22
migrations/versions/0382_remove_old_sms_providers_.py
Normal file
@@ -0,0 +1,22 @@
|
||||
"""
|
||||
|
||||
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")
|
||||
Reference in New Issue
Block a user