# PG Fout bij herbouwen - kolom "token" van relatie "email\_tokens" bestaat niet

**URL:** <https://meta.discourse.org/t/pg-error-on-rebuild-column-token-of-relation-email-tokens-does-not-exist/211934>\
**Category:** Self-hosting\
**Created:** [13 december 2021 om 09:03 UTC](https://meta.discourse.org/t/pg-error-on-rebuild-column-token-of-relation-email-tokens-does-not-exist/211934 "2021-12-13T09:03:41Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)\
**Post date:** [13 december 2021 om 09:03 UTC](https://meta.discourse.org/t/pg-error-on-rebuild-column-token-of-relation-email-tokens-does-not-exist/211934/1 "2021-12-13T09:03:41Z")

</div>

Getting:

```plaintext
2021-12-13 08:57:12.809 UTC [902] discourse@discourse ERROR: column "token" of relation "email_tokens" does not exist
2021-12-13 08:57:12.809 UTC [902] discourse@discourse STATEMENT: ALTER TABLE email_tokens ALTER COLUMN token DROP NOT NULL

rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:

PG::UndefinedColumn: ERROR: column "token" of relation "email_tokens" does not exist

```

Related to?:

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

---

_[View the full topic](https://meta.discourse.org/t/pg-error-on-rebuild-column-token-of-relation-email-tokens-does-not-exist/211934)._
