def create_database(destroy_existing=False): """ Create db and tables if it doesn't exist """ if not os.path.exists(DB_NAME): logger.info('Create database: {0}'.format(DB_NAME)) open(DB_NAME, 'a').close() Show.create_table() Episode.create_table() Setting.create_table()
def create_database(destroy_existing=False): """ Create db and tables if it doesn't exist """ if not os.path.exists(DB_NAME): logger.info('Create database: {0}'.format(DB_NAME)) open(DB_NAME, 'a').close() Show.create_table() Episode.create_table() Setting.create_table()
def setup_tables(): """ Creates the tables for the Arrested Development database. """ db.connect() Joke.create_table() Episode.create_table() EpisodeJoke.create_table() JokeConnection.create_table()
def setup_tables(): """ Creates the tables for the Arrested Development database. """ db.connect() Joke.create_table() Episode.create_table() EpisodeJoke.create_table() JokeConnection.create_table()