• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1def migrate_up(manager):
2    raise Exception('migrate.py should be migrating directly to schema 51 '
3                    'instead of running migration 1...')
4
5
6def migrate_down(manager):
7    manager.execute_script(DROP_DB_SQL)
8
9
10DROP_DB_SQL = """\
11DROP TABLE IF EXISTS `acl_groups`;
12DROP TABLE IF EXISTS `acl_groups_hosts`;
13DROP TABLE IF EXISTS `acl_groups_users`;
14DROP TABLE IF EXISTS `autotests`;
15DROP TABLE IF EXISTS `host_queue_entries`;
16DROP TABLE IF EXISTS `hosts`;
17DROP TABLE IF EXISTS `hosts_labels`;
18DROP TABLE IF EXISTS `ineligible_host_queues`;
19DROP TABLE IF EXISTS `jobs`;
20DROP TABLE IF EXISTS `labels`;
21DROP TABLE IF EXISTS `users`;
22"""
23