1UP_SQL = """ 2ALTER TABLE labels MODIFY name VARCHAR(255) UNIQUE; 3""" 4 5DOWN_SQL = """ 6ALTER TABLE labels MODIFY name VARCHAR(255); 7""" 8 9def migrate_up(manager): 10 manager.execute_script(UP_SQL) 11 12 13def migrate_down(manager): 14 manager.execute_script(DOWN_SQL) 15