mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 18:58:10 +00:00
FIX: Sometimes queued post would have a string for a category
In this case, don't migrate the old queued post category
This commit is contained in:
parent
6525613b89
commit
13c6bf54d0
@ -17,7 +17,7 @@ class MigrateReviewableQueuedPosts < ActiveRecord::Migration[5.2]
|
||||
user_id,
|
||||
true,
|
||||
topic_id,
|
||||
nullif(post_options->>'category', '')::int,
|
||||
NULLIF(REGEXP_REPLACE(post_options->>'category', '[^0-9]+', '', 'g'), '')::int,
|
||||
json_build_object(
|
||||
'old_queued_post_id', id,
|
||||
'raw', raw
|
||||
|
Loading…
x
Reference in New Issue
Block a user