1def migrate_up(manager): 2 raise Exception('The TKO database is no longer used. Please run migrate.py ' 3 'without the -d or --database parameter') 4 5 6def migrate_down(manager): 7 manager.execute_script(DROP_DB_SQL) 8 9 10DROP_DB_SQL = """\ 11-- drop all views (since they depend on some or all of the following tables) 12DROP VIEW IF EXISTS test_view; 13DROP VIEW IF EXISTS perf_view; 14 15DROP TABLE IF EXISTS brrd_sync; 16DROP TABLE IF EXISTS iteration_result; 17DROP TABLE IF EXISTS test_attributes; 18DROP TABLE IF EXISTS tests; 19DROP TABLE IF EXISTS patches; 20DROP TABLE IF EXISTS jobs; 21DROP TABLE IF EXISTS machines; 22DROP TABLE IF EXISTS kernels; 23DROP TABLE IF EXISTS status; 24""" 25