Skip to content

Commit

Permalink
Merge pull request #1475 from cewert/fix-registry-migration
Browse files Browse the repository at this point in the history
Fix registry migration for next release
  • Loading branch information
1hitsong authored Nov 11, 2023
2 parents 1f79986 + 2efb9dc commit faa9e85
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions source/migrations.bs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import "pkg:/source/utils/misc.brs"
' Run all necessary registry mirations on the "global" Jellyfin registry section
sub runGlobalMigrations()
' Global registry migrations
if isValid(m.global.app.lastRunVersion) and not versionChecker(m.global.app.lastRunVersion, "1.7.0")
' last app version used was less than 1.7.0
print "Running 1.7.0 global registry migrations"
if isValid(m.global.app.lastRunVersion) and not versionChecker(m.global.app.lastRunVersion, "2.0.0")
' last app version used was less than 2.0.0
print "Running 2.0.0 global registry migrations"
' no longer saving raw password to registry
' auth token and username are now stored in user settings and not global settings

Expand Down Expand Up @@ -53,8 +53,8 @@ sub runRegistryUserMigrations(version as string)
regSections = getRegistrySections()
for each section in regSections
if LCase(section) <> "jellyfin"
if version = "1.7.0"
print "Running User Registry Migration for 1.7.0"
if version = "2.0.0"
print "Running User Registry Migration for 2.0.0"
' now saving LastRunVersion globally and per user so that we can run user specific registry migrations
' duplicate LastRunVersion to all user settings in the registry so that we can run user specific migrations
'
Expand Down

0 comments on commit faa9e85

Please sign in to comment.