# Database migrations and git flow

**URL:** <https://meta.discourse.org/t/database-migrations-and-git-flow/81114>\
**Category:** Development\
**Created:** [February 21, 2018, 5:41am UTC](https://meta.discourse.org/t/database-migrations-and-git-flow/81114 "2018-02-21T05:41:32Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![mschekotov](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@mschekotov](https://meta.discourse.org/u/mschekotov)\
**Post date:** [February 21, 2018, 1:37pm UTC](https://meta.discourse.org/t/database-migrations-and-git-flow/81114/5 "2018-02-21T13:37:57Z")

</div>

@pfaffman, I do not modify Discourse.

I do not wish to manually apply changes via the administration panel both on the production and the staging servers, but to use migrations for it.

Example use-case: I need to modify contents of the default email templates.

Here is the preferred flow:

- Write the migration to update texts.
- Commit and push changes.
- Deploy the forum to the staging server.
- Make sure everything works properly.
- Deploy the forum to the production server.

---

_[View the full topic](https://meta.discourse.org/t/database-migrations-and-git-flow/81114)._
