Revert "Revert "[#151837054] Add new column free_sms_fragment_limit in the Services table""

This commit is contained in:
Venus Bailey
2017-10-16 16:24:34 +01:00
committed by GitHub
parent e9b76d7d75
commit 9b60d69931
8 changed files with 135 additions and 17 deletions

View File

@@ -0,0 +1,23 @@
"""
Revision ID: 0124_add_free_sms_fragment_limit
Revises: 0123_add_noti_to_email_reply
Create Date: 2017-10-10 11:30:16.225980
"""
from alembic import op
import sqlalchemy as sa
revision = '0124_add_free_sms_fragment_limit'
down_revision = '0123_add_noti_to_email_reply'
def upgrade():
op.add_column('services_history', sa.Column('free_sms_fragment_limit', sa.BigInteger(), nullable=True))
op.add_column('services', sa.Column('free_sms_fragment_limit', sa.BigInteger(), nullable=True))
def downgrade():
op.drop_column('services_history', 'free_sms_fragment_limit')
op.drop_column('services', 'free_sms_fragment_limit')