Removed creature variables during migration
This commit is contained in:
@@ -4,6 +4,7 @@ import { rebuildNestedSets } from '/imports/api/parenting/parentingFunctions';
|
||||
import Docs, { DOC_ROOT_ID } from '/imports/api/docs/Docs';
|
||||
import LibraryNodes from '/imports/api/library/LibraryNodes';
|
||||
import { TreeDoc } from '/imports/api/parenting/ChildSchema';
|
||||
import CreatureVariables from '/imports/api/creature/creatures/CreatureVariables';
|
||||
|
||||
// Git version 2.0.59
|
||||
// Database version 3
|
||||
@@ -17,7 +18,10 @@ Migrations.add({
|
||||
migrateCollection('creatureProperties');
|
||||
console.log('migrating up docs 2 -> 3');
|
||||
migrateCollection('docs');
|
||||
console.log('New schema fields added, if it was done correctly remove the old fields manually');
|
||||
console.log('New parenting schema fields added, if it was done correctly remove the old fields manually');
|
||||
|
||||
console.log('removing all CreatureVariables, creatures will add them back the next time they recalculate');
|
||||
CreatureVariables.remove({});
|
||||
|
||||
console.log('Rebuilding nested sets for all libraries'); // Characters rebuild themselves on recompute
|
||||
const libraryIds = await Libraries.find().mapAsync((library) => library._id);
|
||||
|
||||
Reference in New Issue
Block a user