A user, shahidh, needed to unlist all existing topics using the rails console. They tried updating the unlisted column, but it didn’t exist. bloomexperiment suggested trying the listed column, setting it to false, but that didn’t exist either. After checking the database, Mittineague provided the correct solution: updating the visible column to false. shahidh successfully unlisted the topics using the following command: topic.update_status("visible", false, Discourse.system_user).
ActiveRecord::StatementInvalid: PG::UndefinedColumn: ERROR: column "unlisted" of relation "topics" does not exist
LINE 1: UPDATE "topics" SET "unlisted" = 't' WHERE "topics"."id" = 1
From which I understand that there is no unlisted column for the topic object.
I don’t have much idea and shouldn’t say anything, but what came to me was maybe try "listed" column and set to false? at least something to try until someone else sees (or I find something while peeking around)
Edit: I think I can see things like closed, visible, enabled, archived, disabled and autoclosed in /apps/models/topic_status_update.rb but again, I have no idea