mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-07 10:33:38 +00:00
Removes primary keys and unique keys from xem_numbering table in cache.db
This commit is contained in:
parent
77696cad66
commit
e7cf923cc0
1 changed files with 5 additions and 0 deletions
|
@ -108,3 +108,8 @@ class ConvertIndexerToInteger(ConvertSceneNamesToIndexerID):
|
||||||
ql.append(["UPDATE xem_refresh SET indexer = ? WHERE LOWER(indexer) = ?", ["1", "tvdb"]])
|
ql.append(["UPDATE xem_refresh SET indexer = ? WHERE LOWER(indexer) = ?", ["1", "tvdb"]])
|
||||||
ql.append(["UPDATE xem_refresh SET indexer = ? WHERE LOWER(indexer) = ?", ["2", "tvrage"]])
|
ql.append(["UPDATE xem_refresh SET indexer = ? WHERE LOWER(indexer) = ?", ["2", "tvrage"]])
|
||||||
self.connection.mass_action(ql)
|
self.connection.mass_action(ql)
|
||||||
|
|
||||||
|
class RemoveKeysFromXemNumbering(ConvertIndexerToInteger):
|
||||||
|
def execute(self):
|
||||||
|
self.connection.action("ALTER TABLE xem_numbering DROP UNIQUE (indexer, indexer_id, season, episode)")
|
||||||
|
self.connection.action("ALTER TABLE xem_numbering DROP PRIMARY KEY")
|
Loading…
Reference in a new issue