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.
18 lines
402 B
18 lines
402 B
def migrate_up(manager):
|
|
manager.execute_script(CREATE_TABLE)
|
|
|
|
|
|
def migrate_down(manager):
|
|
manager.execute("DROP TABLE IF EXISTS 'profilers'")
|
|
|
|
|
|
CREATE_TABLE = """\
|
|
CREATE TABLE `profilers` (
|
|
`id` int(11) NOT NULL auto_increment,
|
|
`name` varchar(255) NOT NULL,
|
|
`description` longtext NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `name` (`name`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
|
"""
|