Fix database version migration

This commit is contained in:
angelblue05 2016-10-23 07:11:08 -05:00
parent 280e9ab268
commit 0afc200a96

View file

@ -914,7 +914,7 @@ class LibrarySync(threading.Thread):
emby_db = embydb.Embydb_Functions(embycursor)
currentVersion = emby_db.get_version()
###$ Begin migration $###
if currentVersion is None:
if not currentVersion:
currentVersion = emby_db.get_version(settings('dbCreatedWithVersion') or self.clientInfo.get_version())
embyconn.commit()
log.info("Migration of database version completed")