# Can't downgrade from beta to stable

**URL:** https://meta.discourse.org/t/cant-downgrade-from-beta-to-stable/70838
**Category:** Support
**Created:** [26 Septiembre, 2017 22:05 UTC](https://meta.discourse.org/t/cant-downgrade-from-beta-to-stable/70838 "2017-09-26T22:05:34Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![David\_Park](https://avatars.discourse-cdn.com/v4/letter/d/87869e/32.png) [@David\_Park](https://meta.discourse.org/u/David_Park)
#### Post date: [26 Septiembre, 2017 22:05 UTC](https://meta.discourse.org/t/cant-downgrade-from-beta-to-stable/70838/1 "2017-09-26T22:05:34Z")

</div>

Created a Discourse server from DO. It was running v1.9.0 beta 10 +87.  
When I try to use the stable version: 1.8.7, SSO stopped working and getting error like this.

Failed to create or lookup user: PG::RaiseException: ERROR: Discourse: email in users is readonly : INSERT INTO “users” (“email”, “name”, “username”, “ip\_address”, “trust\_level”, “username\_lower”, …

I just switched back to the beta version and SSO is working for now  
Anyone could help me where should I check?

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [26 Septiembre, 2017 22:08 UTC](https://meta.discourse.org/t/cant-downgrade-from-beta-to-stable/70838/2 "2017-09-26T22:08:32Z")

</div>

You cannot go down versions, that is not supported.

---

<div class="post-metadata">

### Author: ![David\_Park](https://avatars.discourse-cdn.com/v4/letter/d/87869e/32.png) [@David\_Park](https://meta.discourse.org/u/David_Park)
#### Post date: [26 Septiembre, 2017 22:12 UTC](https://meta.discourse.org/t/cant-downgrade-from-beta-to-stable/70838/3 "2017-09-26T22:12:01Z")

</div>

Thanks for quick reply.  
I updated by making “version: stable” in app.yml.  
Is that mean I have to wait for stable build with higher version number?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [26 Septiembre, 2017 23:22 UTC](https://meta.discourse.org/t/cant-downgrade-from-beta-to-stable/70838/4 "2017-09-26T23:22:52Z")

</div>

No, you can rebuild or go to `/admin/upgrade` to upgrade, (but stable doesn’t get updated as often, obviously).

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [27 Septiembre, 2017 01:15 UTC](https://meta.discourse.org/t/cant-downgrade-from-beta-to-stable/70838/5 "2017-09-27T01:15:02Z")

</div>

Wait, I think one of us is confused here.

@David_Park You created a new site, which was installed on `tests_passed`, version 1.9.0.beta10. Next you went into your `app.yml` file and switched to `stable`, rebuilt your site, which then caused you to be on version 1.8.7. @codinghorror please correct me if I’m going nuts, but that is going down in versions and we don’t support “backwards” database migrations.

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [27 Septiembre, 2017 07:20 UTC](https://meta.discourse.org/t/cant-downgrade-from-beta-to-stable/70838/6 "2017-09-27T07:20:00Z")

</div>

That’s correct. The details of what’s happened is the current versions of Discourse have `users.email` marked as read-only in preparation for its eventual removal; the older version of Discourse expects to be writing that column.

---

<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: [27 Septiembre, 2017 07:22 UTC](https://meta.discourse.org/t/cant-downgrade-from-beta-to-stable/70838/7 "2017-09-27T07:22:27Z")

</div>

> [@riking](#):
>
> The details of what’s happened is the current versions of Discourse have users.email marked as read-only in preparation for its eventual removal;

Which reminds me … I need to drop the column now that we can use the rails 5.1 feature that marks the column unused without a monkey patch.

---

<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: [13 Noviembre, 2017 04:41 UTC](https://meta.discourse.org/t/cant-downgrade-from-beta-to-stable/70838/9 "2017-11-13T04:41:47Z")

</div>

OK @tgxworld now dropped the email column properly per new pattern.

[https://github.com/discourse/discourse/commit/b3237d37f04f8d2daa12783f0a961d92ee938549](https://github.com/discourse/discourse/commit/b3237d37f04f8d2daa12783f0a961d92ee938549)

---

<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: [13 Noviembre, 2017 04:42 UTC](https://meta.discourse.org/t/cant-downgrade-from-beta-to-stable/70838/10 "2017-11-13T04:42:01Z")

</div>


