# Major woes upgrading from 1.6.0 to 1.8.0 -- broken site

**URL:** <https://meta.discourse.org/t/major-woes-upgrading-from-1-6-0-to-1-8-0-broken-site/60014>\
**Category:** Self-hosting\
**Created:** [2017 年 3 月 28 日午後 12:21 UTC](https://meta.discourse.org/t/major-woes-upgrading-from-1-6-0-to-1-8-0-broken-site/60014 "2017-03-28T12:21:23Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2017 年 3 月 28 日午後 1:28 UTC](https://meta.discourse.org/t/major-woes-upgrading-from-1-6-0-to-1-8-0-broken-site/60014/2 "2017-03-28T13:28:50Z")

</div>

> [@AgustinCordes](#):
>
> Prayers?

🙂 lots of them

What you are going to need to do is go to make a copy of the [pg 9.3 template](https://github.com/discourse/discourse_docker/blob/master/templates/postgres.9.3.template.yml) and “muck” with it to make it able to uninstall pg 9.5 properly.

The way you would do this is:

```plaintext
cp templates/postgres.9.3.template.yml containers/my-hacked-template.yml

```

Then add

```plaintext
templates:
   - containers/my-hacked-template.yml

```

Into your container definition and remove 9.3

Then you need to start playing with

[https://github.com/discourse/discourse\_docker/blob/master/templates/postgres.9.3.template.yml#L23](https://github.com/discourse/discourse_docker/blob/master/templates/postgres.9.3.template.yml#L23)

To see what you need to do to get that apt-get remove line to work. Once you get it working, ping us back here to let us know what you did.

---

_[View the full topic](https://meta.discourse.org/t/major-woes-upgrading-from-1-6-0-to-1-8-0-broken-site/60014)._
