Updating a Production Database
Here’s a tip on how to easily update the database of a CodeFluent Entities application that is already in production.
Say your application is already in production, and meanwhile you added some extra features, made some bug fixes, and etc. which in the end changed the schema of your database.
The trick to easily update the schema of your application is to leverage CodeFluent Entities’ diff engine to update your application.
To do so:
- Backup your production database,
- On your development environment, run your SQL Server producer on it!
- Restore the updated database on the production server,
- Don’t forget to update upper layers as well