Migration error in 'rename_discourse_rewind_disabled_to_enabled'

Hello :waving_hand:

I also ran into this issue during the rebuild. The only way to get the site back online was to revert to a previous commit. After reverting to a working commit, I found this topic and ran the queries. Hopefully the results are still useful for identifying the root cause.

Query #1

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

Query #2

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

Query #3

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

Query #4

       nspname       |  oid  
---------------------+-------
 discourse_functions | 19411
 backup              | 22997
(2 rows)
1 Like