def dropdb(): """Drops database tables""" if prompt_bool("Are you sure you want to lose all your data"): destroy_db() db.drop_all() db_setup() db.create_all()
def createdb(): """Create database tables""" db_setup() db.create_all() # create user roles Role.insert_roles()
def createdb(): """Create database tables""" db_setup() db.create_all()