mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-05 17:43:37 +00:00
Fix for migration issues
This commit is contained in:
parent
651e71082e
commit
7d6e73f026
1 changed files with 5 additions and 4 deletions
|
@ -548,10 +548,11 @@ class AddSubtitlesSupport(AddDvdOrderOption):
|
|||
return self.checkDBVersion() >= 21
|
||||
|
||||
def execute(self):
|
||||
self.addColumn("tv_shows", "subtitles")
|
||||
self.addColumn("tv_episodes", "subtitles", "TEXT", "")
|
||||
self.addColumn("tv_episodes", "subtitles_searchcount")
|
||||
self.addColumn("tv_episodes", "subtitles_lastsearch", "TIMESTAMP", str(datetime.datetime.min))
|
||||
if not self.hasColumn("tv_shows", "subtitles"):
|
||||
self.addColumn("tv_shows", "subtitles")
|
||||
self.addColumn("tv_episodes", "subtitles", "TEXT", "")
|
||||
self.addColumn("tv_episodes", "subtitles_searchcount")
|
||||
self.addColumn("tv_episodes", "subtitles_lastsearch", "TIMESTAMP", str(datetime.datetime.min))
|
||||
self.incDBVersion()
|
||||
|
||||
class ConvertTVShowsToIndexerScheme(AddSubtitlesSupport):
|
||||
|
|
Loading…
Reference in a new issue