mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-24 16:23:44 -04:00
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:
@@ -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')
|
||||
23
migrations/versions/0226_service_postage.py
Normal file
23
migrations/versions/0226_service_postage.py
Normal 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')
|
||||
Reference in New Issue
Block a user