You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
379 B
21 lines
379 B
UP_SQL = """
|
|
CREATE TABLE `saved_queries` (
|
|
`id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
|
|
`owner` varchar(80) NOT NULL,
|
|
`name` varchar(100) NOT NULL,
|
|
`url_token` longtext NOT NULL
|
|
);
|
|
|
|
"""
|
|
|
|
DOWN_SQL = """
|
|
DROP TABLE IF EXISTS `saved_queries`;
|
|
"""
|
|
|
|
def migrate_up(manager):
|
|
manager.execute(UP_SQL)
|
|
|
|
|
|
def migrate_down(manager):
|
|
manager.execute(DOWN_SQL)
|