Since the database is separate from the application and changes cannot be made to both simultaneously, there are various strategies for keeping them in sync.
Many web applications are deployed by:
- stopping the application
- running any database migrations