mirror of
https://github.com/moparisthebest/SickRage
synced 2025-03-04 10:29:52 -05:00
Merge branch 'origin/dev'
This commit is contained in:
commit
c873b86f38
@ -480,32 +480,25 @@ class AddLastUpdateTVDB(AddShowidTvdbidIndex):
|
|||||||
|
|
||||||
self.incDBVersion()
|
self.incDBVersion()
|
||||||
|
|
||||||
class AddRequireAndIgnoreWords(AddLastUpdateTVDB):
|
class AddDBIncreaseTo15(AddLastUpdateTVDB):
|
||||||
""" Adding column rls_require_words and rls_ignore_words to tv_shows """
|
|
||||||
|
|
||||||
def test(self):
|
def test(self):
|
||||||
return self.checkDBVersion() >= 15
|
return self.checkDBVersion() >= 15
|
||||||
|
|
||||||
def execute(self):
|
def execute(self):
|
||||||
backupDatabase(15)
|
|
||||||
|
|
||||||
logger.log(u"Adding column rls_require_words to tvshows")
|
|
||||||
if not self.hasColumn("tv_shows", "rls_require_words"):
|
|
||||||
self.addColumn("tv_shows", "rls_require_words", "TEXT", "")
|
|
||||||
|
|
||||||
logger.log(u"Adding column rls_ignore_words to tvshows")
|
|
||||||
if not self.hasColumn("tv_shows", "rls_ignore_words"):
|
|
||||||
self.addColumn("tv_shows", "rls_ignore_words", "TEXT", "")
|
|
||||||
|
|
||||||
self.incDBVersion()
|
self.incDBVersion()
|
||||||
|
|
||||||
class AddIMDbInfo(AddRequireAndIgnoreWords):
|
class AddIMDbInfo(AddDBIncreaseTo15):
|
||||||
def test(self):
|
def test(self):
|
||||||
return self.checkDBVersion() >= 16
|
return self.checkDBVersion() >= 16
|
||||||
|
|
||||||
def execute(self):
|
def execute(self):
|
||||||
self.connection.action(
|
self.connection.action(
|
||||||
"CREATE TABLE imdb_info (tvdb_id INTEGER PRIMARY KEY, imdb_id TEXT, title TEXT, year NUMERIC, akas TEXT, runtimes NUMERIC, genres TEXT, countries TEXT, country_codes TEXT, certificates TEXT, rating TEXT, votes INTEGER, last_update NUMERIC)")
|
"CREATE TABLE imdb_info (tvdb_id INTEGER PRIMARY KEY, imdb_id TEXT, title TEXT, year NUMERIC, akas TEXT, runtimes NUMERIC, genres TEXT, countries TEXT, country_codes TEXT, certificates TEXT, rating TEXT, votes INTEGER, last_update NUMERIC)")
|
||||||
|
|
||||||
|
if not self.hasColumn("tv_shows", "imdb_id"):
|
||||||
|
self.addColumn("tv_shows", "imdb_id")
|
||||||
|
|
||||||
self.incDBVersion()
|
self.incDBVersion()
|
||||||
|
|
||||||
class AddProperNamingSupport(AddIMDbInfo):
|
class AddProperNamingSupport(AddIMDbInfo):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user