Fine tune migration concurrency

Fix migration concurrency so that it goes in an orderly process.  This ensures that big migrations will not crash.
This commit is contained in:
supervj 2021-03-12 16:47:24 -05:00
parent a99faad77c
commit 9b63457ae1
2 changed files with 21 additions and 11 deletions

View file

@ -196,7 +196,7 @@ Hooks.once("ready", function() {
// Determine whether a system migration is required and feasible
if ( !game.user.isGM ) return;
const currentVersion = game.settings.get("sw5e", "systemMigrationVersion");
const NEEDS_MIGRATION_VERSION = "1.2.4.R1-A4";
const NEEDS_MIGRATION_VERSION = "1.2.4.R1-A5";
// Check for R1 SW5E versions
const SW5E_NEEDS_MIGRATION_VERSION = "R1-A5";
const COMPATIBLE_MIGRATION_VERSION = 0.80;