def upgrade():
    op.add_column('cycle_task_group_object_tasks', sa.Column('finished_date', sa.DateTime(), nullable=True))
    op.add_column('cycle_task_group_object_tasks', sa.Column('verified_date', sa.DateTime(), nullable=True))
    op.execute('\n      UPDATE cycle_task_group_object_tasks\n      SET finished_date = updated_at\n      WHERE status = "Finished"\n  ')
    op.execute('\n      UPDATE cycle_task_group_object_tasks\n      SET verified_date = updated_at, finished_date = updated_at\n      WHERE status = "Verified"\n  ')
def upgrade():
    op.add_column('cycle_task_group_object_tasks', sa.Column('finished_date', sa.DateTime(), nullable=True))
    op.add_column('cycle_task_group_object_tasks', sa.Column('verified_date', sa.DateTime(), nullable=True))
    op.execute('\n      UPDATE cycle_task_group_object_tasks\n      SET finished_date = updated_at\n      WHERE status = "Finished"\n  ')
    op.execute('\n      UPDATE cycle_task_group_object_tasks\n      SET verified_date = updated_at, finished_date = updated_at\n      WHERE status = "Verified"\n  ')