Update version number for migration code (#5354)

This commit is contained in:
Xavion3 2025-02-17 11:07:09 +11:00 committed by GitHub
parent 4361aa089b
commit 0913c77140
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 6 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "pokemon-rogue-battle", "name": "pokemon-rogue-battle",
"version": "1.6.4", "version": "1.7.0",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "pokemon-rogue-battle", "name": "pokemon-rogue-battle",
"version": "1.6.4", "version": "1.7.0",
"hasInstallScript": true, "hasInstallScript": true,
"dependencies": { "dependencies": {
"@material/material-color-utilities": "^0.2.7", "@material/material-color-utilities": "^0.2.7",

View File

@ -1,7 +1,7 @@
{ {
"name": "pokemon-rogue-battle", "name": "pokemon-rogue-battle",
"private": true, "private": true,
"version": "1.6.4", "version": "1.7.0",
"type": "module", "type": "module",
"scripts": { "scripts": {
"start": "vite", "start": "vite",

View File

@ -172,7 +172,7 @@ class SystemVersionConverter extends VersionConverter {
this.callMigrators(data, v1_1_0.systemMigrators); this.callMigrators(data, v1_1_0.systemMigrators);
} }
if (curMinor < 7) { if (curMinor < 7) {
console.log("Applying v1.7.0 session data migration!"); console.log("Applying v1.7.0 system data migration!");
this.callMigrators(data, v1_7_0.systemMigrators); this.callMigrators(data, v1_7_0.systemMigrators);
} }
} }
@ -202,11 +202,11 @@ class SettingsVersionConverter extends VersionConverter {
this.callMigrators(data, v1_1_0.settingsMigrators); this.callMigrators(data, v1_1_0.settingsMigrators);
} }
if (curMinor < 7) { if (curMinor < 7) {
console.log("Applying v1.7.0 session data migration!"); console.log("Applying v1.7.0 settings data migration!");
this.callMigrators(data, v1_7_0.settingsMigrators); this.callMigrators(data, v1_7_0.settingsMigrators);
} }
} }
console.log(`System data successfully migrated to v${version}!`); console.log(`Settings data successfully migrated to v${version}!`);
} }
} }