mirror of
https://github.com/discourse/discourse.git
synced 2025-02-07 20:08:26 +00:00
skip post processing stuff we did not import
This commit is contained in:
parent
606aeb9d55
commit
a6be3d7cbe
@ -54,16 +54,17 @@ class ImportScripts::Lithium < ImportScripts::Base
|
|||||||
def execute
|
def execute
|
||||||
|
|
||||||
SiteSetting.allow_html_tables = true
|
SiteSetting.allow_html_tables = true
|
||||||
|
@max_start_id = Post.maximum(:id)
|
||||||
|
|
||||||
import_categories
|
import_categories
|
||||||
# import_users
|
import_users
|
||||||
# import_topics
|
import_topics
|
||||||
# import_posts
|
import_posts
|
||||||
# import_likes
|
import_likes
|
||||||
# import_accepted_answers
|
import_accepted_answers
|
||||||
# import_pms
|
import_pms
|
||||||
# close_topics
|
close_topics
|
||||||
# create_permalinks
|
create_permalinks
|
||||||
|
|
||||||
post_process_posts
|
post_process_posts
|
||||||
end
|
end
|
||||||
@ -745,7 +746,7 @@ SQL
|
|||||||
|
|
||||||
mysql_query("create index idxUniqueId on message2(unique_id)") rescue nil
|
mysql_query("create index idxUniqueId on message2(unique_id)") rescue nil
|
||||||
|
|
||||||
Post.all.find_each do |post|
|
Post.where('id > ?', @max_start_id).find_each do |post|
|
||||||
begin
|
begin
|
||||||
id = post.custom_fields["import_unique_id"]
|
id = post.custom_fields["import_unique_id"]
|
||||||
next unless id
|
next unless id
|
||||||
|
Loading…
x
Reference in New Issue
Block a user