mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
DEV: Update importers from PostUpload to UploadReference (#23681)
Discourse stopped using PostUpload in 9db8f00b3d
. Since then, these importers have been writing to the table, but any data was totally unused. This commit updates the easy cases to use UploadReference, and adds an error to the discourse_merger import script, which needs more significant work.
This commit is contained in:
@ -2,6 +2,8 @@
|
||||
|
||||
require_relative "base"
|
||||
|
||||
raise "This importer needs to be updated from using PostUpload to UploadReference"
|
||||
|
||||
class BulkImport::DiscourseMerger < BulkImport::Base
|
||||
NOW ||= "now()"
|
||||
CUSTOM_FIELDS = %w[category group post topic user]
|
||||
|
Reference in New Issue
Block a user