Revert "refactor: Replace hard-coded pg default port with PostgresDatabase.de…" (#28117)
This reverts commit cfb04b93e1.
This commit is contained in:
parent
633c511039
commit
a25df17efb
1 changed files with 1 additions and 2 deletions
|
|
@ -426,11 +426,10 @@ def get_site_config(sites_path: str | None = None, site_path: str | None = None)
|
|||
# Generalized env variable overrides and defaults
|
||||
def db_default_ports(db_type):
|
||||
from frappe.database.mariadb.database import MariaDBDatabase
|
||||
from frappe.database.postgres.database import PostgresDatabase
|
||||
|
||||
return {
|
||||
"mariadb": MariaDBDatabase.default_port,
|
||||
"postgres": PostgresDatabase.default_port,
|
||||
"postgres": 5432,
|
||||
}[db_type]
|
||||
|
||||
config["redis_queue"] = (
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue