A few small changes to the phpBB3 importer (#4321)

* Reconnect to phpBB3 database on connection loss

* Map geek smiley to :nerd: emoji in phpBB3 importer

* Import PMs to yourself from phpBB3

* Allow empty table prefix in phpBB3 importer
This commit is contained in:
Gerhard Schlager
2016-07-11 23:59:15 +02:00
committed by Régis Hanol
parent 4d65370797
commit c145e747b6
6 changed files with 57 additions and 56 deletions

View File

@ -37,7 +37,8 @@ module ImportScripts::PhpBB3
port: @database_settings.port,
username: @database_settings.username,
password: @database_settings.password,
database: @database_settings.schema
database: @database_settings.schema,
reconnect: true
)
end
@ -46,7 +47,7 @@ module ImportScripts::PhpBB3
@database_client.query(<<-SQL, cache_rows: false, symbolize_keys: true).first[:config_value]
SELECT config_value
FROM #{table_prefix}_config
FROM #{table_prefix}config
WHERE config_name = 'version'
SQL
end