Failsafe for db version

This commit is contained in:
angelblue05 2016-10-23 06:13:25 -05:00
parent 51d17c1d7c
commit 280e9ab268

View file

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