mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 02:11:11 -05:00
make columns nullable
This commit is contained in:
@@ -16,6 +16,8 @@ revision = '0112_add_start_end_dates'
|
|||||||
|
|
||||||
def upgrade():
|
def upgrade():
|
||||||
op.drop_index('uix_monthly_billing', 'monthly_billing')
|
op.drop_index('uix_monthly_billing', 'monthly_billing')
|
||||||
|
op.alter_column('monthly_billing', 'month', nullable=True)
|
||||||
|
op.alter_column('monthly_billing', 'year', nullable=True)
|
||||||
op.add_column('monthly_billing', sa.Column('start_date', sa.DateTime))
|
op.add_column('monthly_billing', sa.Column('start_date', sa.DateTime))
|
||||||
op.add_column('monthly_billing', sa.Column('end_date', sa.DateTime))
|
op.add_column('monthly_billing', sa.Column('end_date', sa.DateTime))
|
||||||
conn = op.get_bind()
|
conn = op.get_bind()
|
||||||
|
|||||||
Reference in New Issue
Block a user