Skip to content

Allow system migrations to access unpruned actor and item sources#22068

Open
In3luki wants to merge 2 commits intofoundryvtt:v14-devfrom
In3luki:data-model-migrations
Open

Allow system migrations to access unpruned actor and item sources#22068
In3luki wants to merge 2 commits intofoundryvtt:v14-devfrom
In3luki:data-model-migrations

Conversation

@In3luki
Copy link
Copy Markdown
Collaborator

@In3luki In3luki commented Apr 18, 2026

This is the only way I was able to make it work reliably.

  • Move the check for necessary migrations before Documents are initialized.
  • Record the unpruned source in a seperate property on actors and items only if a migration is necessary.
  • Use the unpruned source for migrations if it's available.

I've successfully migrated a 2 year old backup of my test world multiple times. Including some test runs where I migrated a property that was no longer in the current data schema.
There still might be a better way to do this but I am out of ideas.

@In3luki In3luki changed the title Enable system migrations to access unpruned actor and item sources Allow system migrations to access unpruned actor and item sources Apr 18, 2026
@In3luki In3luki force-pushed the data-model-migrations branch from 5e6c907 to fce95be Compare April 19, 2026 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant