更新后出现未定义的列“boomarks.post_id”

今天更新时遇到了同样的问题。重新添加 post_id 列有助于解决此问题。

步骤:

  1. 进入 discourse 容器
./launcher enter app
  1. 进入 psql
sudo -u postgres psql discourse
  1. bookmarks 表中重新添加 post_id
ALTER TABLE bookmarks ADD COLUMN post_id int;
2 个赞