• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1def migrate_up(manager):
2    manager.execute_script(CREATE_TABLE)
3
4
5def migrate_down(manager):
6    manager.execute("DROP TABLE IF EXISTS 'profilers'")
7
8
9CREATE_TABLE = """\
10CREATE TABLE `profilers` (
11  `id` int(11) NOT NULL auto_increment,
12  `name` varchar(255) NOT NULL,
13  `description` longtext NOT NULL,
14  PRIMARY KEY  (`id`),
15  UNIQUE KEY `name` (`name`)
16) ENGINE=InnoDB DEFAULT CHARSET=latin1
17"""
18