Skip to content

Commit

Permalink
Enable all upgrades and use bare database accesses for MusicDB
Browse files Browse the repository at this point in the history
  • Loading branch information
rstemmer committed Jul 19, 2020
1 parent f6ce389 commit e1ea154
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions mod/upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ class upgrade(MDBModule, MusicDBDatabase):
def __init__(self, config, database):
MDBModule.__init__(self)

self.db = database
# The MusicDatabase object should not be used
# because the database may be outdated when calling upgrade
# Use the low level interface instead
#self.db = database
self.db = Database(config.database.path)
self.cfg = config
self.fs = None

Expand Down Expand Up @@ -343,9 +347,9 @@ def UpgradeConfiguration(self):
def MDBM_Main(self, args):

self.UpgradeConfiguration()
# self.UpgradeMusicDB()
# self.UpgradeTrackerDB()
# self.UpgradeLycraDB()
self.UpgradeMusicDB()
self.UpgradeTrackerDB()
self.UpgradeLycraDB()
#self.UpgradeWebUIConfiguration()
return 0

Expand Down

0 comments on commit e1ea154

Please sign in to comment.