Home | History | Annotate | Download | only in migrations
      1 def 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 
      6 def migrate_down(manager):
      7     manager.execute_script(DROP_DB_SQL)
      8 
      9 
     10 DROP_DB_SQL = """\
     11 -- drop all views (since they depend on some or all of the following tables)
     12 DROP VIEW IF EXISTS test_view;
     13 DROP VIEW IF EXISTS perf_view;
     14 
     15 DROP TABLE IF EXISTS brrd_sync;
     16 DROP TABLE IF EXISTS iteration_result;
     17 DROP TABLE IF EXISTS test_attributes;
     18 DROP TABLE IF EXISTS tests;
     19 DROP TABLE IF EXISTS patches;
     20 DROP TABLE IF EXISTS jobs;
     21 DROP TABLE IF EXISTS machines;
     22 DROP TABLE IF EXISTS kernels;
     23 DROP TABLE IF EXISTS status;
     24 """
     25