# 重建失败，db:migrate w/PG12

**URL:** https://meta.discourse.org/t/rebuild-fails-on-db-migrate-w-pg12/224287
**Category:** Self-hosting
**Created:** [2022年四月14日 15:25 UTC](https://meta.discourse.org/t/rebuild-fails-on-db-migrate-w-pg12/224287 "2022-04-14T15:25:57Z")
**Posts on this page:** 1
**Showing post:** 11

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [2022年四月14日 17:09 UTC](https://meta.discourse.org/t/rebuild-fails-on-db-migrate-w-pg12/224287/11 "2022-04-14T17:09:05Z")

</div>

> [@Wingtip](#):
>
> `enable_extension("unaccent")`

此扩展在 PostgreSQL 13+ 上已成为“受信任”扩展，任何用户都可以启用它。

由于您运行的是较旧的 PostgreSQL 版本，因此您必须通过为 Discourse 用户安装和启用此扩展来解决此问题，并可能尝试欺骗 Discourse 使其认为此扩展已安装。或者升级到当前支持的 PostgreSQL 版本。

---

_[View the full topic](https://meta.discourse.org/t/rebuild-fails-on-db-migrate-w-pg12/224287)._
