2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

Add rake task for reordering posts by creation_date

This commit is contained in:
Gerhard Schlager 2018-03-29 14:42:41 +02:00
parent 3287ac77e0
commit cf9965fd54
2 changed files with 95 additions and 0 deletions

View file

@ -15,6 +15,10 @@
#
# You need to call fix_quotes_in_csv() for CSV files that use \" to escape quotes within quoted fields.
# The import script expects quotes to be escaped with "".
#
# It's likely that some posts in replies.csv aren't in the correct order. Currently the import script doesn't handle
# that correctly and will import the replies in the wrong order.
# You should run `rake posts:reorder_posts` after the import.
require 'csv'
require 'set'