リビルド失敗 (カラム directory_columns.type が存在しません)

こんにちは、

再ビルドを試みたところ、以下のエラーで失敗しました。

I, [2021-06-22T21:57:12.240614 #1] INFO – : > cd /var/www/discourse && su discourse -c ‘bundle exec rake db:migrate’

2021-06-22 21:57:15.052 UTC [3862] discourse@discourse ERROR: column directory_columns.type does not exist at character 66

2021-06-22 21:57:15.052 UTC [3862] discourse@discourse STATEMENT: SELECT "directory_columns"."name" FROM "directory_columns" WHERE "directory_columns"."type" IN (0, 2) AND "directory_columns"."enabled" = TRUE

** PLUGIN FAILURE **

プラグインの初期化中にこのエラーが発生したため、Discourse をビルドできません。

PG::UndefinedColumn: ERROR: column directory_columns.type does not exist

LINE 1: ...ry_columns"."name" FROM "directory_columns" WHERE "directory...

これはおそらく、Solved プラグインのこのコミットが原因ではないかと考えています。

Meta では動作しているため、プラグインの互換性問題ではないかとは確信できませんが、確信は持てません。

使用しているプラグインは以下の通りです。

      - https://github.com/discourse/discourse-solved.git
      - https://github.com/jannolii/discourse-topic-trade-buttons.git
      - https://github.com/discourse/discourse-whos-online.git
      - https://github.com/discourse/discourse-adplugin.git
      - https://github.com/paviliondev/discourse-follow.git
      - https://github.com/discourse/discourse-cakeday.git
      - https://github.com/paviliondev/discourse-locations.git
      - https://github.com/discourse/discourse-docs.git
      - https://github.com/paviliondev/discourse-pm-topic-author.git
      - https://github.com/discourse/discourse-reactions.git

追記: 一つずつコメントアウトして試しました。その結果、Discourse Locations プラグインをコメントアウトすれば再ビルドが成功することがわかりました。

「いいね!」 1

ロバートが「Locations Plugin」トピックでこの問題の解決策を共有してくれたので、このトピックを閉じてもよいと思います。ありがとうございます! :slight_smile:

「いいね!」 1