1 def migrate_up(mgr): 2 mgr.execute("alter table machines modify column hostname varchar(700);") 3 4 def migrate_down(mgr): 5 mgr.execute("alter table machines modify column hostname varchar(100);") 6