mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 08:43:25 +08:00
FIX: backup_restore.rb wants db user from user, not username (#28229)
ActiveRecord::Base.connection_pool.db_config.configuration_hash has the username in `user`, not `username`.
This commit is contained in:
parent
0514044cf2
commit
2e8273dcb4
|
@ -135,7 +135,7 @@ module BackupRestore
|
|||
DatabaseConfiguration.new(
|
||||
config["backup_host"] || config["host"],
|
||||
config["backup_port"] || config["port"],
|
||||
config["username"] || username || ENV["USER"] || "postgres",
|
||||
config["user"] || username || ENV["USER"] || "postgres",
|
||||
config["password"] || password,
|
||||
config["database"],
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user