# So many broken users due to corrupt database

**URL:** <https://meta.discourse.org/t/so-many-broken-users-due-to-corrupt-database/135779>\
**Category:** Product Support\
**Created:** [December 12, 2019, 4:32pm UTC](https://meta.discourse.org/t/so-many-broken-users-due-to-corrupt-database/135779 "2019-12-12T16:32:12Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![blattersturm](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blattersturm/32/76134_2.png) [@blattersturm](https://meta.discourse.org/u/blattersturm)\
**Post date:** [April 27, 2020, 6:48am UTC](https://meta.discourse.org/t/so-many-broken-users-due-to-corrupt-database/135779/15 "2020-04-27T06:48:19Z")

</div>

> [@RGJ](#):
>
> and then rename `users` to `users_old` and `users_clean` to `users` .

I’d like to drop in here and say **this might break your database** even more than the broken users will!

We now are stuck halfway between upgrades as a lot of constraints are still relying on `users_old` since we renamed the table, and this was only shown as an issue a few days after applying this apparently incomplete fix, also `like users including indexes` **is not enough** (it’ll ignore the `id` sequence for example).

---

_[View the full topic](https://meta.discourse.org/t/so-many-broken-users-due-to-corrupt-database/135779)._
