Migrate data model of compendiums before migrating the content
This commit is contained in:
parent
b9f7588f95
commit
8cf6db2ba5
1 changed files with 1 additions and 1 deletions
|
@ -115,6 +115,7 @@ async function migrateCompendium(compendium: Compendium) {
|
||||||
if (!["Actor", "Item", "Scene"].includes(entityName)) return;
|
if (!["Actor", "Item", "Scene"].includes(entityName)) return;
|
||||||
const wasLocked = compendium.locked;
|
const wasLocked = compendium.locked;
|
||||||
await compendium.configure({ locked: false });
|
await compendium.configure({ locked: false });
|
||||||
|
await compendium.migrate({});
|
||||||
|
|
||||||
const content = await compendium.getContent();
|
const content = await compendium.getContent();
|
||||||
|
|
||||||
|
@ -141,6 +142,5 @@ async function migrateCompendium(compendium: Compendium) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
await compendium.migrate({});
|
|
||||||
await compendium.configure({ locked: wasLocked });
|
await compendium.configure({ locked: wasLocked });
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue