When you upgrade to Major version like 10.1.xx to 10.2.xxx, you have to run Upgrade Epicor database utility from Admin Console, it will take care regenerate data model and all script updates. Minor upgrades only needs to run Conversion workbench.
I don’t have a screenshot of the Database Upgrade GUI, but it is basically the last thing “Regenerate Data Model” it does after “Post-Migration” step. You will see it in the Admin Console >> Upgrade Epicor Database.