Skip to content

How to force my db_schema.xml to run after a third-party InstallData.php?

I’m working with a legacy module where they used the old InstallData.php script to build their tables, and now I need to make some changes to them.

If I wrote those changes in a db_schema.xml, it gets executed before the original install data even with my module declared to load after theirs on the module.xml, causing a mess in the final result.

Am I missing something?