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