Just a friendly note that hopefully finds someone in need.
If you are running a DB migration script for a database upgrade and it fails.
First check if you doing any non-standard Epicor things such as CDC or ChangeTracking (like for BI or a data lake).
If you are using CT or CDC, you’ll need to script it off before migrating, obviously re-enabling once you are done.
(Dont forget that disabling CT will kill any current history so make sure you extract any lingering changes first).
If you are having DB migration errors and are not doing any of this stuff, I cant help you, but I offer a hug.