From a25df17efb18e46dc87bcbab120a0229dc06f568 Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Sun, 13 Oct 2024 18:35:50 +0530 Subject: [PATCH] =?UTF-8?q?Revert=20"refactor:=20Replace=20hard-coded=20pg?= =?UTF-8?q?=20default=20port=20with=20PostgresDatabase.de=E2=80=A6"=20(#28?= =?UTF-8?q?117)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit cfb04b93e1169f6d854228c7456064704419f37a. --- frappe/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frappe/__init__.py b/frappe/__init__.py index 1b6dc3db34..97e509af54 100644 --- a/frappe/__init__.py +++ b/frappe/__init__.py @@ -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"] = (