Merge branch 'hotfix/0.11.10'

This commit is contained in:
JackDandy 2016-03-17 19:09:38 +00:00
commit 5507dd21c7
2 changed files with 12 additions and 5 deletions

View file

@ -1,4 +1,9 @@
### 0.11.9 (2016-03-17 12:30:00 UTC)
### 0.11.10 (2016-03-17 19:00:00 UTC)
* Fix dbs that should not have been imported to work
### 0.11.9 (2016-03-17 12:30:00 UTC)
* Fix for import of very rare db structure

View file

@ -1042,8 +1042,9 @@ class AddTvShowOverview(db.SchemaUpgrade):
def execute(self):
db.backup_database('sickbeard.db', self.checkDBVersion())
logger.log(u'Adding column overview to tv_shows')
self.addColumn('tv_shows', 'overview', 'TEXT', '')
if not self.hasColumn('tv_shows', 'overview'):
logger.log(u'Adding column overview to tv_shows')
self.addColumn('tv_shows', 'overview', 'TEXT', '')
self.setDBVersion(20002)
return self.checkDBVersion()
@ -1054,8 +1055,9 @@ class AddTvShowTags(db.SchemaUpgrade):
def execute(self):
db.backup_database('sickbeard.db', self.checkDBVersion())
logger.log(u'Adding tag to tv_shows')
self.addColumn('tv_shows', 'tag', 'TEXT', 'Show List')
if not self.hasColumn('tv_shows', 'tag'):
logger.log(u'Adding tag to tv_shows')
self.addColumn('tv_shows', 'tag', 'TEXT', 'Show List')
self.setDBVersion(20003)
return self.checkDBVersion()