Add billing models and small alteration to billing tables

This commit is contained in:
venusbb
2018-03-12 18:19:26 +00:00
parent 32185fa587
commit 59898b7349
2 changed files with 66 additions and 1 deletions

View 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)