feat: add curator skill migration

This commit is contained in:
zkldi
2022-12-19 00:00:45 +00:00
parent a6d00ac273
commit c4a16f4da4
2 changed files with 17 additions and 1 deletions
+3 -1
View File
@@ -5,6 +5,7 @@ import FixUndefinedBMSData from "./migrations/fix-undefined-bms-data";
import JoinINFCastHourCharts from "./migrations/join-inf-casthour-charts";
import JoinINFCastHourSongs from "./migrations/join-inf-casthour-songs";
import JubeatMusicRate1DP from "./migrations/jubeat-musicrate-1dp";
import KtRatingToCuratorSkill from "./migrations/ktRating-to-curator-skill";
import MarkFervidexAsWithoutIntent from "./migrations/mark-fervidex-as-without-intent";
import MarkKsHookAsWithoutIntent from "./migrations/mark-kshook-as-without-intent";
import NullLR2HookFailedBPs from "./migrations/null-lr2hook-failed-bps";
@@ -56,7 +57,8 @@ if (Environment.nodeEnv !== "test") {
JoinINFCastHourSongs,
MarkFervidexAsWithoutIntent,
MarkKsHookAsWithoutIntent,
JubeatMusicRate1DP
JubeatMusicRate1DP,
KtRatingToCuratorSkill
);
}
@@ -0,0 +1,14 @@
import { RecalcAllScores } from "utils/calculations/recalc-scores";
import type { Migration } from "utils/types";
const migration: Migration = {
id: "ktRating-to-curator-skill",
up: async () => {
await RecalcAllScores({ game: "museca" });
},
down: () => {
throw new Error(`Not possible to revert.`);
},
};
export default migration;