From 97db8fd408380721325a7cda8a428415546806be Mon Sep 17 00:00:00 2001 From: echel0n Date: Thu, 27 Mar 2014 19:18:39 -0700 Subject: [PATCH] Fixed IntegrityError caused by primary key not being unique --- sickbeard/databases/cache_db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sickbeard/databases/cache_db.py b/sickbeard/databases/cache_db.py index a9ac367f..b0938d9b 100644 --- a/sickbeard/databases/cache_db.py +++ b/sickbeard/databases/cache_db.py @@ -68,7 +68,7 @@ class AddXemNumbering(AddNetworkTimezones): def execute(self): self.connection.action( - "CREATE TABLE xem_numbering (indexer TEXT, indexer_id INTEGER, season INTEGER, episode INTEGER, scene_season INTEGER, scene_episode INTEGER, PRIMARY KEY (indexer_id, season, episode))") + "CREATE TABLE xem_numbering (indexer TEXT, indexer_id INTEGER, season INTEGER, episode INTEGER, scene_season INTEGER, scene_episode INTEGER, PRIMARY KEY (indexer, indexer_id, season, episode))") class AddXemRefresh(AddXemNumbering):