blob: 2cd26108f74456bf8cb04aa0508e7a0bde9a6d95 [file] [log] [blame]
mbligh5456c2b2008-02-15 18:42:55 +00001def migrate_up(manager):
jamesren92afa562010-03-23 00:19:26 +00002 raise Exception('The TKO database is no longer used. Please run migrate.py '
3 'without the -d or --database parameter')
mbligh5456c2b2008-02-15 18:42:55 +00004
5
mblighaa383b72008-03-12 20:11:56 +00006def migrate_down(manager):
jadmanski0afbb632008-06-06 21:10:57 +00007 manager.execute_script(DROP_DB_SQL)
mblighaa383b72008-03-12 20:11:56 +00008
9
10DROP_DB_SQL = """\
mbligh5456c2b2008-02-15 18:42:55 +000011-- 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;
mblighaa383b72008-03-12 20:11:56 +000024"""