用户合并失败,第三方插件导致数据库条目损坏

为了存档起见,如果该主题有多个自定义字段,你应该使用:

tcf = TopicCustomField.where(plugin_name: 'discourse-events', topic_id: problematic_topic_id)
c = tcf.first
c.value = "[295,50]"
c.save

@hellekin 我建议迁移到 https://meta.discourse.org/t/discourse-event/149964。

事实上,或许你可以和 @fzngagan 合作编写一个从 Events 到 Discourse Events 的迁移脚本?那里正好需要一个实际案例来测试。Faiz,我们应该优先处理此事,我希望能正式弃用 Events。

3 个赞