mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 20:11:10 +08:00
DEV: Support phpBB 3.3 imports (#17641)
* handle polls with duplicate items * handle polls with incorrect poll_option_total values * handle group IDs in personal messages * support for version 3.3
This commit is contained in:
@ -22,13 +22,13 @@ module ImportScripts::PhpBB3
|
||||
if version.start_with?('3.0')
|
||||
require_relative 'database_3_0'
|
||||
Database_3_0.new(@database_client, @database_settings)
|
||||
elsif version.start_with?('3.1') || version.start_with?('3.2')
|
||||
elsif version.start_with?('3.1') || version.start_with?('3.2') || version.start_with?('3.3')
|
||||
require_relative 'database_3_1'
|
||||
Database_3_1.new(@database_client, @database_settings)
|
||||
else
|
||||
raise UnsupportedVersionError, <<~TEXT
|
||||
Unsupported version (#{version}) of phpBB detected.
|
||||
Currently only version 3.0, 3.1 and 3.2 are supported by this importer.
|
||||
Currently only version 3.0, 3.1, 3.2 and 3.3 are supported by this importer.
|
||||
TEXT
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user