Make service postage nullable

This commit is contained in:
Pea Tyczynska
2019-02-12 12:11:33 +00:00
parent 8ea55c3f5c
commit 6320882876

View File

@@ -0,0 +1,27 @@
"""
Revision ID: 0258_service_postage_nullable
Revises: 0257_letter_branding_migration
Create Date: 2019-02-12 11:52:53.139383
"""
from alembic import op
import sqlalchemy as sa
revision = '0258_service_postage_nullable'
down_revision = '0257_letter_branding_migration'
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.alter_column('services_history', 'postage', existing_type=sa.BOOLEAN(), nullable=True)
op.alter_column('services', 'postage', existing_type=sa.BOOLEAN(), nullable=True)
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.alter_column('services_history', 'postage', existing_type=sa.BOOLEAN(), nullable=False)
op.alter_column('services', 'postage', existing_type=sa.BOOLEAN(), nullable=False)
# ### end Alembic commands ###