Skip to content

Commit

Permalink
Merge pull request #1574 from cewert/fix-migration-crash
Browse files Browse the repository at this point in the history
  • Loading branch information
cewert authored Dec 16, 2023
2 parents 51452ab + 20cdb6f commit 0a97440
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions source/migrations.bs
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,13 @@ sub runRegistryUserMigrations()
' app versions < 2.0.0 didn't save LastRunVersion at the user level
' fall back to using the apps lastRunVersion
lastRunVersion = m.global.app.lastRunVersion
registry_write("LastRunVersion", lastRunVersion, section)
if isValid(lastRunVersion)
registry_write("LastRunVersion", lastRunVersion, section)
end if
end if

' BASE_MIGRATION
if not versionChecker(lastRunVersion, CLIENT_VERSION_REQUIRING_BASE_MIGRATION)
if isValid(lastRunVersion) and not versionChecker(lastRunVersion, CLIENT_VERSION_REQUIRING_BASE_MIGRATION)
m.wasMigrated = true
print `Running Registry Migration for ${CLIENT_VERSION_REQUIRING_BASE_MIGRATION} for userid: ${section}`

Expand Down

0 comments on commit 0a97440

Please sign in to comment.