From bfff4c03f9a0c51be5d8d149a3d00e8a4916584b Mon Sep 17 00:00:00 2001 From: j Date: Fri, 24 Sep 2010 14:40:00 +0000 Subject: [PATCH] escape % --- pandora/backend/migrations/0011_rename_movie.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora/backend/migrations/0011_rename_movie.py b/pandora/backend/migrations/0011_rename_movie.py index bec903c3..d93975b1 100644 --- a/pandora/backend/migrations/0011_rename_movie.py +++ b/pandora/backend/migrations/0011_rename_movie.py @@ -21,8 +21,8 @@ class Migration(SchemaMigration): db.rename_column('backend_listitem', 'movie_id', 'item_id') db.create_unique('backend_posterurl', ['url', 'item_id', 'service']) - db.execute("UPDATE backend_item SET poster=REPLACE(poster,'movies/','items/') WHERE poster LIKE 'movies/%'") - db.execute("UPDATE backend_stream SET video=REPLACE(video,'movies/','items/') WHERE video LIKE 'movies/%'") + db.execute("UPDATE backend_item SET poster=REPLACE(poster,'movies/','items/') WHERE poster LIKE 'movies/%%'") + db.execute("UPDATE backend_stream SET video=REPLACE(video,'movies/','items/') WHERE video LIKE 'movies/%%'") def backwards(self, orm): db.rename_table('backend_itemsort', 'backend_moviesort')