Recently we faced a weird issue in our build generation. Model store generated from the build, does not reflect the recent changes and correct build number when deployed.
This issue came when the previous build failed in Restore step of staging database. Since the staging db was not corrupted , I corrected it by taking the back up from another environment and using the same for the build.
Issue started from here : we get green builds but none of the builds have latest changes . On deploying we found the build number was of the back up DB which I restored from other environment.
Is there any issue with model file ? NO… Model file generated from the build has all the latest changes but model store is not giving proper output.
So , what should I do now ??
- Import the model file manually to the database with conflict :overwrite option
- Sync and compile
- Back up the model DB to the staging DB.
Now , we have correct build number when the model store is deployed.