Create migration handler

This commit is contained in:
Carlos Fernandez 2026-07-11 18:05:10 -04:00
parent 17c09c76b0
commit 01a6ce7d78
3 changed files with 88 additions and 40 deletions

View file

@ -1,7 +1,15 @@
export class Migration_2_5_2 {
version = '2.5.2';
import { MigrationHandlerBase } from './base.mjs';
async updateEffect(effectSource, item) {
export class Migration_2_5_2 extends MigrationHandlerBase {
version = '2.5.2';
documentNames = ['Actor', 'Item'];
/** @protected */
_preMigrate() {
}
async updateEffectSource(effectSource, item) {
let shouldUpdate = false;
const newChanges = [];
const srdItem = item?._stats.compendiumSource ?