Image_url column is not present in topics table

Discourse version: 2.5.0 beta 6, image_url column is not present in the ‘topics’ table. Is it removed?

I checked 2.5.0 beta 5, the image_url column is present in the topics table. can anyone help me with this?

1 Like

It has been replaced with the image_upload_id column. You can then fetch a url from the uploads table.

5 Likes

image_upload_id is NULL is many records. what could be the reason?
what is the use of the ‘topic_links’ table ?

1 Like

It will be null if there are no suitable images for the topic. Note that the images must now be uploads on the site, not images hotlinked from other sites.

The topic_links table is unrelated. It tracks when people share links between topics on the site.

2 Likes