diff --git a/server/src/lib/migration/migrations.ts b/server/src/lib/migration/migrations.ts index 77676eec0..511fe2934 100644 --- a/server/src/lib/migration/migrations.ts +++ b/server/src/lib/migration/migrations.ts @@ -3,6 +3,7 @@ import UGPTRivalsMigration from "./migrations/add-rivals-to-ugpt"; 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 MarkFervidexAsWithoutIntent from "./migrations/mark-fervidex-as-without-intent"; import NullLR2HookFailedBPs from "./migrations/null-lr2hook-failed-bps"; import RecalcBrokenIIDXNotecounts from "./migrations/recalc-broken-iidx-notecounts"; import RemoveIIDXBeginners from "./migrations/remove-iidx-beginners"; @@ -43,7 +44,8 @@ if (Environment.nodeEnv !== "test") { RemoveIIDXBeginners, UpdateJubeatPreferredTables, JoinINFCastHourCharts, - JoinINFCastHourSongs + JoinINFCastHourSongs, + MarkFervidexAsWithoutIntent ); } diff --git a/server/src/lib/migration/migrations/mark-fervidex-as-without-intent.ts b/server/src/lib/migration/migrations/mark-fervidex-as-without-intent.ts new file mode 100644 index 000000000..533aa5fe1 --- /dev/null +++ b/server/src/lib/migration/migrations/mark-fervidex-as-without-intent.ts @@ -0,0 +1,21 @@ +import db from "external/mongo/db"; +import type { Migration } from "utils/types"; + +const migration: Migration = { + id: "mark-fervidex-as-without-intent", + up: async () => { + await db.imports.update( + { + importType: "ir/fervidex", + }, + { + userIntent: false, + } + ); + }, + down: () => { + throw new Error(`Unable to revert transaction.`); + }, +}; + +export default migration;