mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-26 02:02:20 +02:00
Update version number for migration code
This commit is contained in:
parent
3b6d2fb96a
commit
f8f5bbe44f
@ -7,8 +7,8 @@ import * as v1_0_4 from "./versions/v1_0_4";
|
|||||||
// --- v1.1.0 PATCHES --- //
|
// --- v1.1.0 PATCHES --- //
|
||||||
import * as v1_1_0 from "./versions/v1_1_0";
|
import * as v1_1_0 from "./versions/v1_1_0";
|
||||||
|
|
||||||
// --- v1.1.0 PATCHES --- //
|
// --- v1.7.0 PATCHES --- //
|
||||||
import * as v1_6_0 from "./versions/v1_6_0";
|
import * as v1_7_0 from "./versions/v1_7_0";
|
||||||
|
|
||||||
const LATEST_VERSION = version.split(".").map(value => parseInt(value));
|
const LATEST_VERSION = version.split(".").map(value => parseInt(value));
|
||||||
|
|
||||||
@ -141,9 +141,9 @@ class SessionVersionConverter extends VersionConverter {
|
|||||||
console.log("Applying v1.1.0 session data migration!");
|
console.log("Applying v1.1.0 session data migration!");
|
||||||
this.callMigrators(data, v1_1_0.sessionMigrators);
|
this.callMigrators(data, v1_1_0.sessionMigrators);
|
||||||
}
|
}
|
||||||
if (curMinor < 6) {
|
if (curMinor < 7) {
|
||||||
console.log("Applying v1.6.0 session data migration!");
|
console.log("Applying v1.7.0 session data migration!");
|
||||||
this.callMigrators(data, v1_6_0.sessionMigrators);
|
this.callMigrators(data, v1_7_0.sessionMigrators);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -171,9 +171,9 @@ class SystemVersionConverter extends VersionConverter {
|
|||||||
console.log("Applying v1.1.0 system data migraton!");
|
console.log("Applying v1.1.0 system data migraton!");
|
||||||
this.callMigrators(data, v1_1_0.systemMigrators);
|
this.callMigrators(data, v1_1_0.systemMigrators);
|
||||||
}
|
}
|
||||||
if (curMinor < 6) {
|
if (curMinor < 7) {
|
||||||
console.log("Applying v1.6.0 session data migration!");
|
console.log("Applying v1.7.0 session data migration!");
|
||||||
this.callMigrators(data, v1_6_0.systemMigrators);
|
this.callMigrators(data, v1_7_0.systemMigrators);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -201,9 +201,9 @@ class SettingsVersionConverter extends VersionConverter {
|
|||||||
console.log("Applying v1.1.0 settings data migraton!");
|
console.log("Applying v1.1.0 settings data migraton!");
|
||||||
this.callMigrators(data, v1_1_0.settingsMigrators);
|
this.callMigrators(data, v1_1_0.settingsMigrators);
|
||||||
}
|
}
|
||||||
if (curMinor < 6) {
|
if (curMinor < 7) {
|
||||||
console.log("Applying v1.6.0 session data migration!");
|
console.log("Applying v1.7.0 session data migration!");
|
||||||
this.callMigrators(data, v1_6_0.settingsMigrators);
|
this.callMigrators(data, v1_7_0.settingsMigrators);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user