Add column, free_sms_fragment_limit, to services & services_history

- Created new column in both tables
- Modified model and Service schema
- Modifed existing test
This commit is contained in:
venusbb
2017-10-10 15:33:31 +01:00
committed by Katie Smith
parent fe37313d18
commit f95282a84d
4 changed files with 29 additions and 15 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')