mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-03 12:28:13 +03:00
feat: add curator skill migration
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user