mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-25 01:32:21 +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 --- //
|
||||
import * as v1_1_0 from "./versions/v1_1_0";
|
||||
|
||||
// --- v1.1.0 PATCHES --- //
|
||||
import * as v1_6_0 from "./versions/v1_6_0";
|
||||
// --- v1.7.0 PATCHES --- //
|
||||
import * as v1_7_0 from "./versions/v1_7_0";
|
||||
|
||||
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!");
|
||||
this.callMigrators(data, v1_1_0.sessionMigrators);
|
||||
}
|
||||
if (curMinor < 6) {
|
||||
console.log("Applying v1.6.0 session data migration!");
|
||||
this.callMigrators(data, v1_6_0.sessionMigrators);
|
||||
if (curMinor < 7) {
|
||||
console.log("Applying v1.7.0 session data migration!");
|
||||
this.callMigrators(data, v1_7_0.sessionMigrators);
|
||||
}
|
||||
}
|
||||
|
||||
@ -171,9 +171,9 @@ class SystemVersionConverter extends VersionConverter {
|
||||
console.log("Applying v1.1.0 system data migraton!");
|
||||
this.callMigrators(data, v1_1_0.systemMigrators);
|
||||
}
|
||||
if (curMinor < 6) {
|
||||
console.log("Applying v1.6.0 session data migration!");
|
||||
this.callMigrators(data, v1_6_0.systemMigrators);
|
||||
if (curMinor < 7) {
|
||||
console.log("Applying v1.7.0 session data migration!");
|
||||
this.callMigrators(data, v1_7_0.systemMigrators);
|
||||
}
|
||||
}
|
||||
|
||||
@ -201,9 +201,9 @@ class SettingsVersionConverter extends VersionConverter {
|
||||
console.log("Applying v1.1.0 settings data migraton!");
|
||||
this.callMigrators(data, v1_1_0.settingsMigrators);
|
||||
}
|
||||
if (curMinor < 6) {
|
||||
console.log("Applying v1.6.0 session data migration!");
|
||||
this.callMigrators(data, v1_6_0.settingsMigrators);
|
||||
if (curMinor < 7) {
|
||||
console.log("Applying v1.7.0 session data migration!");
|
||||
this.callMigrators(data, v1_7_0.settingsMigrators);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user