# “rename\_discourse\_rewind\_disabled\_to\_enabled”中的迁移错误

**URL:** <https://meta.discourse.org/t/migration-error-in-rename-discourse-rewind-disabled-to-enabled/393049>\
**Category:** Self-hosting\
**Created:** [2026年一月8日 16:28 UTC](https://meta.discourse.org/t/migration-error-in-rename-discourse-rewind-disabled-to-enabled/393049 "2026-01-08T16:28:20Z")\
**Posts on this page:** 1\
**Showing post:** 23

<div class="post-metadata">

**Author:** ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)\
**Post date:** [2026年一月10日 20:12 UTC](https://meta.discourse.org/t/migration-error-in-rename-discourse-rewind-disabled-to-enabled/393049/23 "2026-01-10T20:12:12Z")

</div>

你好 👋

我在重建过程中也遇到了这个问题。恢复网站上线的唯一方法是回滚到之前的提交。回滚到一个可用的提交后，我找到了这个主题并运行了查询。希望这些结果对确定根本原因仍然有用。

**查询 #1**

```plaintext
 table_schema | column_name | column_default 
--------------+---------------------------+----------------
 backup | discourse_rewind_disabled | false
 public | discourse_rewind_disabled | false
(2 rows)

```

**查询 #2**

```plaintext
 nspname | oid  
---------+-------
 public | 2200
 backup | 22997
(2 rows)

```

**查询 #3**

```plaintext
 table_schema | has_default 
--------------+-------------
 backup | t
 public | t
(2 rows)

```

**查询 #4**

```plaintext
       nspname | oid  
---------------------+-------
 discourse_functions | 19411
 backup | 22997
(2 rows)

```

---

_[View the full topic](https://meta.discourse.org/t/migration-error-in-rename-discourse-rewind-disabled-to-enabled/393049)._
