1 def migrate_up(manager): 2 manager.execute(CREATE_TABLE) 3 4 def migrate_down(manager): 5 manager.execute("DROP TABLE IF EXISTS `aborted_host_queue_entries`") 6 7 CREATE_TABLE = """\ 8 CREATE TABLE `aborted_host_queue_entries` ( 9 `queue_entry_id` integer NOT NULL PRIMARY KEY, 10 `aborted_by_id` integer NOT NULL, 11 `aborted_on` datetime NOT NULL 12 ) ENGINE=InnoDB DEFAULT CHARSET=latin1 13 """ 14