1 def migrate_up(manager): 2 manager.execute('ALTER TABLE autotests ADD `synch_type` smallint ' 3 'NOT NULL') 4 # set all to asynchronous by default 5 manager.execute('UPDATE autotests SET synch_type=1') 6 7 8 def migrate_down(manager): 9 manager.execute('ALTER TABLE autotests DROP `synch_type`') 10