mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 18:42:45 +08:00
Fix gem load order for all importers
https://meta.discourse.org/t/migrating-from-mybb/25563/8
This commit is contained in:
parent
3d2d224312
commit
a412e9bede
|
@ -7,9 +7,8 @@
|
|||
# This script is tested only on Simplified Chinese Discuz! X instances
|
||||
# If you want to import data other than Simplified Chinese, email me.
|
||||
|
||||
require File.expand_path(File.dirname(__FILE__) + "/base.rb")
|
||||
|
||||
require 'mysql2'
|
||||
require File.expand_path(File.dirname(__FILE__) + "/base.rb")
|
||||
|
||||
class ImportScripts::DiscuzX < ImportScripts::Base
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
require File.expand_path(File.dirname(__FILE__) + "/base.rb")
|
||||
|
||||
require "mysql2"
|
||||
require File.expand_path(File.dirname(__FILE__) + "/base.rb")
|
||||
|
||||
class ImportScripts::Drupal < ImportScripts::Base
|
||||
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
require "mysql2"
|
||||
require File.expand_path(File.dirname(__FILE__) + "/base.rb")
|
||||
require File.expand_path(File.dirname(__FILE__) + "/drupal.rb")
|
||||
|
||||
require "mysql2"
|
||||
|
||||
class ImportScripts::DrupalQA < ImportScripts::Drupal
|
||||
|
||||
def categories_query
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
require File.expand_path(File.dirname(__FILE__) + "/base.rb")
|
||||
|
||||
require "mysql2"
|
||||
require File.expand_path(File.dirname(__FILE__) + "/base.rb")
|
||||
|
||||
class ImportScripts::Kunena < ImportScripts::Base
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
require File.expand_path(File.dirname(__FILE__) + "/base.rb")
|
||||
require "mysql2"
|
||||
|
||||
require File.expand_path(File.dirname(__FILE__) + "/base.rb")
|
||||
|
||||
class ImportScripts::PhpBB3 < ImportScripts::Base
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
require File.expand_path(File.dirname(__FILE__) + "/base.rb")
|
||||
require "csv"
|
||||
require File.expand_path(File.dirname(__FILE__) + "/base.rb")
|
||||
|
||||
class ImportScripts::Vanilla < ImportScripts::Base
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
require File.expand_path(File.dirname(__FILE__) + "/base.rb")
|
||||
require 'mysql2'
|
||||
require File.expand_path(File.dirname(__FILE__) + "/base.rb")
|
||||
require 'htmlentities'
|
||||
|
||||
class ImportScripts::VBulletin < ImportScripts::Base
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require "csv"
|
||||
require File.expand_path(File.dirname(__FILE__) + "/base.rb")
|
||||
require "optparse"
|
||||
require "csv"
|
||||
|
||||
class ImportScripts::VBulletinOld < ImportScripts::Base
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user