mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
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:

committed by
Régis Hanol

parent
4d65370797
commit
c145e747b6
@ -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
|
||||
|
Reference in New Issue
Block a user