From 6dc6341e05ef702cd16bff40275228ddc6d85489 Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 3 Apr 2015 13:59:23 +0800 Subject: [PATCH] Fix provider consolidation cache upgrade --- CHANGES.md | 1 + sickbeard/databases/cache_db.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 28e172ea..141c54ae 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -123,6 +123,7 @@ * Fix loading shows from the DB that have NULL IMDb id * Change order of snatched provider images to chronological on History layout compact and add ordinal indicators in the tooltips * Fix XEM Exceptions in case of bad data from XEM +* Fix provider consolidation cache upgrade ### 0.7.2 (2015-03-10 17:05:00 UTC) diff --git a/sickbeard/databases/cache_db.py b/sickbeard/databases/cache_db.py index b3b5c0b8..d6aa5287 100644 --- a/sickbeard/databases/cache_db.py +++ b/sickbeard/databases/cache_db.py @@ -121,6 +121,6 @@ class ConsolidateProviders(AddNetworkConversions): current_tables = set(self.listTables()) remove_tables = list(current_tables - keep_tables) for table in remove_tables: - self.connection.action('DROP TABLE %s' % table) + self.connection.action('DROP TABLE [%s]' % table) self.incDBVersion() \ No newline at end of file