Removed unwanted migration commands

There were some unwanted db migration commands which crept into the
migration file. removed these as they are being handled in other PRs.
This commit is contained in:
Richard Chapman
2017-11-07 15:30:08 +00:00
parent 26617a921e
commit ab43803453

View File

@@ -26,24 +26,11 @@ def upgrade():
op.create_index(op.f('ix_stats_template_usage_by_month_month'), 'stats_template_usage_by_month', ['month'], unique=False)
op.create_index(op.f('ix_stats_template_usage_by_month_template_id'), 'stats_template_usage_by_month', ['template_id'], unique=False)
op.create_index(op.f('ix_stats_template_usage_by_month_year'), 'stats_template_usage_by_month', ['year'], unique=False)
op.drop_table('notification_statistics')
op.alter_column('notification_history', 'international',
existing_type=sa.BOOLEAN(),
nullable=False)
op.alter_column('notifications', 'international',
existing_type=sa.BOOLEAN(),
nullable=False)
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.alter_column('notifications', 'international',
existing_type=sa.BOOLEAN(),
nullable=True)
op.alter_column('notification_history', 'international',
existing_type=sa.BOOLEAN(),
nullable=True)
op.create_table('notification_statistics',
sa.Column('id', postgresql.UUID(), autoincrement=False, nullable=False),
sa.Column('service_id', postgresql.UUID(), autoincrement=False, nullable=False),