mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
Fix base and vBulletin importer
This commit is contained in:
parent
1821ba8d93
commit
6238a43f93
2 changed files with 3 additions and 3 deletions
|
@ -199,7 +199,7 @@ class ImportScripts::Base
|
|||
|
||||
Post.exec_sql('create temp table import_ids(val varchar(200) primary key)')
|
||||
|
||||
import_id_clause = import_ids.map{|id| "('#{PG::Connection.escape_string(id)}')"}.join(",")
|
||||
import_id_clause = import_ids.map{|id| "('#{PG::Connection.escape_string(id.to_s)}')"}.join(",")
|
||||
Post.exec_sql("insert into import_ids values #{import_id_clause}")
|
||||
|
||||
existing = "#{type.to_s.classify}CustomField".constantize.where(name: 'import_id')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue