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