KVM test: physical_resources_check: Fixing error message
[autotest-zwu.git] / tko / migrations / 010_add_saved_queries.py
bloba7ff0f6be93934b3d35ca725961fb301b3a6519e
1 UP_SQL = """
2 CREATE TABLE `saved_queries` (
3 `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
4 `owner` varchar(80) NOT NULL,
5 `name` varchar(100) NOT NULL,
6 `url_token` longtext NOT NULL
7 );
9 """
11 DOWN_SQL = """
12 DROP TABLE IF EXISTS `saved_queries`;
13 """
15 def migrate_up(manager):
16 manager.execute(UP_SQL)
19 def migrate_down(manager):
20 manager.execute(DOWN_SQL)