mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 18:24:52 -06:00
remove customer specific conditions in vBulletin importer
This commit is contained in:
parent
7c739f0f45
commit
4b92835460
@ -238,124 +238,6 @@ class BulkImport::VBulletin < BulkImport::Base
|
||||
end
|
||||
end
|
||||
|
||||
THREADID_TO_LAST_SPLIT_TOPIC ||= {
|
||||
"23402" => 356403,
|
||||
"41718" => 356406,
|
||||
"65557" => 356407,
|
||||
"116821" => 356408,
|
||||
"145183" => 356437,
|
||||
"147012" => 356438,
|
||||
"150573" => 356439,
|
||||
"165466" => 356440,
|
||||
"168440" => 356447,
|
||||
"172673" => 356451,
|
||||
"197396" => 356457,
|
||||
"214985" => 356467,
|
||||
"241020" => 356472,
|
||||
"261505" => 356473,
|
||||
"273075" => 356475,
|
||||
"279362" => 356480,
|
||||
"294442" => 356481,
|
||||
"296316" => 356484,
|
||||
"303838" => 356488,
|
||||
"304623" => 356489,
|
||||
"306609" => 356490,
|
||||
"308308" => 356492,
|
||||
"309479" => 356493,
|
||||
"310594" => 356497,
|
||||
"324756" => 356499,
|
||||
"326427" => 356500,
|
||||
"337786" => 356502,
|
||||
"343157" => 356503,
|
||||
"348725" => 356504,
|
||||
"351609" => 356505,
|
||||
"352959" => 356507,
|
||||
"362675" => 356535,
|
||||
"364296" => 356548,
|
||||
"364345" => 356549,
|
||||
"367170" => 356550,
|
||||
"367864" => 356551,
|
||||
"368039" => 356555,
|
||||
"370097" => 356556,
|
||||
"370692" => 356557,
|
||||
"370973" => 356560,
|
||||
"371616" => 356571,
|
||||
"371800" => 356576,
|
||||
"372110" => 356577,
|
||||
"372523" => 356578,
|
||||
"374095" => 356580,
|
||||
"374101" => 356582,
|
||||
"375370" => 356590,
|
||||
"375720" => 356597,
|
||||
"376222" => 356600,
|
||||
"377327" => 356602,
|
||||
"377602" => 356605,
|
||||
"378410" => 356649,
|
||||
"378427" => 356688,
|
||||
"378601" => 356715,
|
||||
"378626" => 356719,
|
||||
"379022" => 356723,
|
||||
"379154" => 356759,
|
||||
"380049" => 356765,
|
||||
"380369" => 356766,
|
||||
"382255" => 356768,
|
||||
"383977" => 356782,
|
||||
"383979" => 356800,
|
||||
"383984" => 356816,
|
||||
"384244" => 356817,
|
||||
"385428" => 356818,
|
||||
"385468" => 356835,
|
||||
"386359" => 356840,
|
||||
"388832" => 356841,
|
||||
"392270" => 356842,
|
||||
"395046" => 356844,
|
||||
"399345" => 356845,
|
||||
"401198" => 356992,
|
||||
"403768" => 356884,
|
||||
"407143" => 356891,
|
||||
"418161" => 356893,
|
||||
"421055" => 356894,
|
||||
"433491" => 356895,
|
||||
"437060" => 356897,
|
||||
"443007" => 356898,
|
||||
"447225" => 356899,
|
||||
"457936" => 356903,
|
||||
"459688" => 356906,
|
||||
"470279" => 356911,
|
||||
"473557" => 356912,
|
||||
"473994" => 356913,
|
||||
"475738" => 356916,
|
||||
"485760" => 356918,
|
||||
"504381" => 356921,
|
||||
"510334" => 356922,
|
||||
"514835" => 356924,
|
||||
"522255" => 356925,
|
||||
"527966" => 356935,
|
||||
"531947" => 356937,
|
||||
"532704" => 356938,
|
||||
"538822" => 356940,
|
||||
"540348" => 356942,
|
||||
"542165" => 356943,
|
||||
"550355" => 356945,
|
||||
"556908" => 356946,
|
||||
"573595" => 356949,
|
||||
"575689" => 356952,
|
||||
"586690" => 356953,
|
||||
"591079" => 356954,
|
||||
"592192" => 356957,
|
||||
"595446" => 356964,
|
||||
"603469" => 356975,
|
||||
"717852" => 356978,
|
||||
"732735" => 356979,
|
||||
"736189" => 356985,
|
||||
"760442" => 356993,
|
||||
"819366" => 357001,
|
||||
"819368" => 357014,
|
||||
"819370" => 357020,
|
||||
"377038" => 356601,
|
||||
"450088" => 356900,
|
||||
}
|
||||
|
||||
def import_posts
|
||||
puts "Importing posts..."
|
||||
|
||||
@ -368,7 +250,7 @@ class BulkImport::VBulletin < BulkImport::Base
|
||||
SQL
|
||||
|
||||
create_posts(posts) do |row|
|
||||
topic_id = THREADID_TO_LAST_SPLIT_TOPIC[row[1].to_s] || topic_id_from_imported_id(row[1])
|
||||
topic_id = topic_id_from_imported_id(row[1])
|
||||
replied_post_topic_id = topic_id_from_imported_post_id(row[2])
|
||||
reply_to_post_number = topic_id == replied_post_topic_id ? post_number_from_imported_id(row[2]) : nil
|
||||
|
||||
@ -393,7 +275,6 @@ class BulkImport::VBulletin < BulkImport::Base
|
||||
SELECT pmtextid, title, fromuserid, touserarray, dateline
|
||||
FROM pmtext
|
||||
WHERE pmtextid > (#{@last_imported_private_topic_id - PRIVATE_OFFSET})
|
||||
AND dateline > 1426930967
|
||||
ORDER BY pmtextid
|
||||
SQL
|
||||
|
||||
@ -424,7 +305,6 @@ class BulkImport::VBulletin < BulkImport::Base
|
||||
SELECT pmtextid, touserarray
|
||||
FROM pmtext
|
||||
WHERE pmtextid > (#{@last_imported_private_topic_id - PRIVATE_OFFSET})
|
||||
AND dateline > 1426930967
|
||||
ORDER BY pmtextid
|
||||
SQL
|
||||
).each do |row|
|
||||
@ -450,7 +330,6 @@ class BulkImport::VBulletin < BulkImport::Base
|
||||
SELECT pmtextid, title, fromuserid, touserarray, dateline, message
|
||||
FROM pmtext
|
||||
WHERE pmtextid > #{@last_imported_private_post_id - PRIVATE_OFFSET}
|
||||
AND dateline > 1426930967
|
||||
ORDER BY pmtextid
|
||||
SQL
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user