mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 23:55:58 -05:00
Merge branch 'use-ft-billing-for-usage' of github.com:alphagov/notifications-api
This commit is contained in:
32
migrations/versions/0189_ft_billing_data_type.py
Normal file
32
migrations/versions/0189_ft_billing_data_type.py
Normal file
@@ -0,0 +1,32 @@
|
||||
"""
|
||||
|
||||
Revision ID: 0189_ft_billing_data_type
|
||||
Revises: 0187_another_letter_org
|
||||
Create Date: 2018-05-10 14:57:52.589773
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
revision = '0189_ft_billing_data_type'
|
||||
down_revision = '0187_another_letter_org'
|
||||
|
||||
|
||||
def upgrade():
|
||||
op.alter_column('ft_billing', 'billable_units',
|
||||
existing_type=sa.NUMERIC(),
|
||||
type_=sa.Integer(),
|
||||
existing_nullable=True)
|
||||
op.alter_column('ft_billing', 'rate_multiplier',
|
||||
existing_type=sa.NUMERIC(),
|
||||
type_=sa.Integer())
|
||||
|
||||
|
||||
def downgrade():
|
||||
op.alter_column('ft_billing', 'rate_multiplier',
|
||||
existing_type=sa.Integer(),
|
||||
type_=sa.NUMERIC())
|
||||
op.alter_column('ft_billing', 'billable_units',
|
||||
existing_type=sa.Integer(),
|
||||
type_=sa.NUMERIC(),
|
||||
existing_nullable=True)
|
||||
Reference in New Issue
Block a user