1UP_SQL = """ 2UPDATE saved_queries 3SET url_token = REPLACE(url_token, 'view=Metrics+Plot', 'view=metrics_plot'); 4""" 5 6def migrate_up(manager): 7 manager.execute(UP_SQL) 8 9def migrate_down(manager): 10 pass 11