Change the name of letter_class to postage, this will match the domain language used in the documentation.

Updated the tests to answer review comments.
This commit is contained in:
Rebecca Law
2018-09-18 15:22:08 +01:00
parent efb618e956
commit 1c0892888f
8 changed files with 74 additions and 94 deletions

View File

@@ -1,23 +0,0 @@
"""
Revision ID: 0226_letter_class
Revises: 0225_another_letter_org
Create Date: 2018-09-13 16:23:59.168877
"""
from alembic import op
import sqlalchemy as sa
revision = '0226_letter_class'
down_revision = '0225_another_letter_org'
def upgrade():
op.add_column('services', sa.Column('letter_class', sa.String(length=255), nullable=True))
op.add_column('services_history', sa.Column('letter_class', sa.String(length=255), nullable=True))
def downgrade():
op.drop_column('services_history', 'letter_class')
op.drop_column('services', 'letter_class')

View File

@@ -0,0 +1,23 @@
"""
Revision ID: 0226_service_postage
Revises: 0225_another_letter_org
Create Date: 2018-09-13 16:23:59.168877
"""
from alembic import op
import sqlalchemy as sa
revision = '0226_service_postage'
down_revision = '0225_another_letter_org'
def upgrade():
op.add_column('services', sa.Column('postage', sa.String(length=255), nullable=True))
op.add_column('services_history', sa.Column('postage', sa.String(length=255), nullable=True))
def downgrade():
op.drop_column('services_history', 'postage')
op.drop_column('services', 'postage')