diff --git a/migrations/versions/0258_service_postage_nullable.py b/migrations/versions/0258_service_postage_nullable.py new file mode 100644 index 000000000..bdaf40527 --- /dev/null +++ b/migrations/versions/0258_service_postage_nullable.py @@ -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 ###