mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 02:11:11 -05:00
Assign delivery_status type to existing callbacks
This commit is contained in:
21
migrations/versions/0206_assign_callback_type.py
Normal file
21
migrations/versions/0206_assign_callback_type.py
Normal file
@@ -0,0 +1,21 @@
|
||||
"""
|
||||
|
||||
Revision ID: 0206_assign_callback_type
|
||||
Revises: 0205_service_callback_type
|
||||
Create Date: 2018-07-18 10:43:43.864835
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
revision = '0206_assign_callback_type'
|
||||
down_revision = '0205_service_callback_type'
|
||||
|
||||
|
||||
def upgrade():
|
||||
op.execute("update service_callback_api set callback_type = 'delivery_status' where callback_type is null")
|
||||
|
||||
|
||||
def downgrade():
|
||||
pass
|
||||
Reference in New Issue
Block a user