Fixed IntegrityError caused by primary key not being unique

This commit is contained in:
echel0n 2014-03-27 19:18:39 -07:00
parent 06913ea517
commit 97db8fd408

View file

@ -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):