mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-24 01:11:38 -05:00
Add billing models and small alteration to billing tables
This commit is contained in:
24
migrations/versions/0176_alter_billing_columns.py
Normal file
24
migrations/versions/0176_alter_billing_columns.py
Normal file
@@ -0,0 +1,24 @@
|
||||
"""
|
||||
|
||||
Revision ID: 0176_alter_billing_columns
|
||||
Revises: 0175_drop_job_statistics_table
|
||||
Create Date: 2018-03-12 16:54:30.663897
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
revision = '0176_alter_billing_columns'
|
||||
down_revision = '0175_drop_job_statistics_table'
|
||||
|
||||
|
||||
def upgrade():
|
||||
op.alter_column('dm_datetime', 'calendar_week', existing_type=sa.INTEGER(), nullable=False)
|
||||
op.alter_column('dm_datetime', 'day', existing_type=sa.INTEGER(), nullable=False)
|
||||
op.alter_column('dm_datetime', 'financial_year', existing_type=sa.INTEGER(), nullable=False)
|
||||
|
||||
|
||||
def downgrade():
|
||||
op.alter_column('dm_datetime', 'financial_year', existing_type=sa.INTEGER(), nullable=True)
|
||||
op.alter_column('dm_datetime', 'day', existing_type=sa.INTEGER(), nullable=True)
|
||||
op.alter_column('dm_datetime', 'calendar_week', existing_type=sa.INTEGER(), nullable=True)
|
||||
Reference in New Issue
Block a user