def startup_db(clear_db): if clear_db: log.info('Clearing database') drop_tables() create_tables() verify_database_schema() if clear_db: log.info('Drop and recreate is complete. Now remove -cd and restart.') sys.exit()
def startup_db(clear_db): log.info('Connecting to MySQL database on %s:%i...', args.db_host, args.db_port) if clear_db: log.info('Clearing RocketMAD tables') drop_rm_tables() create_rm_tables() verify_database_schema() if clear_db: log.info('Drop and recreate is complete. Now remove -cd and restart.') sys.exit(0)