Added migration for TagTeamData

This commit is contained in:
WBHarry 2026-07-16 02:16:57 +02:00
parent 7a036821d9
commit ef749f9b8c
3 changed files with 65 additions and 3 deletions

View file

@ -0,0 +1,20 @@
import { MigrationHandlerBase } from './base.mjs';
export class Migration_2_6_0 extends MigrationHandlerBase {
version = '2.6.0';
/** @inheritdoc */
async updateActorSource(actor) {
if (actor.type === 'party') {
return {
_id: actor._id,
system: {
tagTeam: {
initiator: null,
members: _replace({})
}
}
};
}
}
}