mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 02:11:11 -05:00
Removed pre-populate column to run after migration
This commit is contained in:
@@ -1,22 +0,0 @@
|
|||||||
"""empty message
|
|
||||||
|
|
||||||
Revision ID: 0093_populate_inbound_provider
|
|
||||||
Revises: 0092_add_inbound_provider
|
|
||||||
Create Date: 2017-05-22 10:23:43.939050
|
|
||||||
|
|
||||||
"""
|
|
||||||
|
|
||||||
# revision identifiers, used by Alembic.
|
|
||||||
revision = '0093_populate_inbound_provider'
|
|
||||||
down_revision = '0092_add_inbound_provider'
|
|
||||||
|
|
||||||
from alembic import op
|
|
||||||
import sqlalchemy as sa
|
|
||||||
from sqlalchemy.dialects import postgresql
|
|
||||||
|
|
||||||
def upgrade():
|
|
||||||
op.execute("UPDATE inbound_sms SET provider='mmg' WHERE provider is null")
|
|
||||||
|
|
||||||
|
|
||||||
def downgrade():
|
|
||||||
op.execute("UPDATE inbound_sms SET provider=null WHERE provider = 'mmg'")
|
|
||||||
Reference in New Issue
Block a user