# "stable" branch will not downgrade - fails on db:migrate

**URL:** <https://meta.discourse.org/t/stable-branch-will-not-downgrade-fails-on-db-migrate/77049>\
**Category:** Self-hosting\
**Created:** [January 1, 2018, 12:01pm UTC](https://meta.discourse.org/t/stable-branch-will-not-downgrade-fails-on-db-migrate/77049 "2018-01-01T12:01:58Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)\
**Post date:** [January 2, 2018, 10:50am UTC](https://meta.discourse.org/t/stable-branch-will-not-downgrade-fails-on-db-migrate/77049/6 "2018-01-02T10:50:16Z")

</div>

It should be in there. Try this:

1. `cd /var/discourse`
2. Stop the container in case it is still running: `sudo ./launcher stop app`
3. Delete the database: `sudo rm -rf shared/standalone/`  
⚠ This step will delete all Discourse-related data!
4. Make sure `app.yml` is on the stable version
5. Run `sudo ./launcher rebuild app` to bootstrap and start the container, which will create a fresh database

The important thing is not to bootstrap any newer version before having selected `stable`, or deleting the `shared` folder in-between – anything else would be a downgrade of a (mostly empty) Discourse database, which is unsupported.

---

_[View the full topic](https://meta.discourse.org/t/stable-branch-will-not-downgrade-fails-on-db-migrate/77049)._
