def reset_command(force):
    """Drop database tables and run migrations."""
    if not force:
        exit('Cancelled.')

    click.echo('Dropping DB tables.')
    drop_all()

    click.echo('Running DB migrations.')
    alembic.upgrade(migrate.get_config(None), 'head')

    click.echo('Done.')
def reset_command ( force ) : if not force : exit ( 'Cancelled.' ) click . echo ( 'Dropping DB tables.' ) drop_all ( ) click . echo ( 'Running DB migrations.' ) alembic . upgrade ( migrate . get_config ( None ) , 'head' ) click . echo ( 'Done.' )
Drop database tables and run migrations.