From 0dacc99f9a4fd8955f0f947a7c9eda741a8fface Mon Sep 17 00:00:00 2001 From: Dominik Wombacher Date: Jan 07 2023 10:54:09 +0000 Subject: fix: dialect 'postgres://' deprecated in sqlalchemy using sqlalchemy dialect 'postgres://' instead 'postgresql://' caused deprecation warnings till v1.3 and throws 'NoSuchModuleError' errors since v1.4. unsupported dialect replaced in pagure sample config and documentation --- diff --git a/dev/ansible/roles/pagure-dev/files/pagure.cfg b/dev/ansible/roles/pagure-dev/files/pagure.cfg index ea75526..2a40a7a 100644 --- a/dev/ansible/roles/pagure-dev/files/pagure.cfg +++ b/dev/ansible/roles/pagure-dev/files/pagure.cfg @@ -20,7 +20,7 @@ SECRET_KEY='' ### url to the database server: #DB_URL=mysql://user:pass@host/db_name -#DB_URL=postgres://user:pass@host/db_name +#DB_URL=postgresql://user:pass@host/db_name DB_URL = 'sqlite:////srv/git/pagure_dev.sqlite' ### The FAS group in which the admin of pagure are diff --git a/doc/configuration.rst b/doc/configuration.rst index 8f74ebc..dc35566 100644 --- a/doc/configuration.rst +++ b/doc/configuration.rst @@ -44,7 +44,7 @@ Examples values: :: DB_URL = 'mysql://user:pass@host/db_name' - DB_URL = 'postgres://user:pass@host/db_name' + DB_URL = 'postgresql://user:pass@host/db_name' DB_URL = 'sqlite:////var/tmp/pagure_dev.sqlite' Defaults to ``sqlite:////var/tmp/pagure_dev.sqlite`` diff --git a/files/pagure.cfg.sample b/files/pagure.cfg.sample index f1b8b45..5789953 100644 --- a/files/pagure.cfg.sample +++ b/files/pagure.cfg.sample @@ -20,7 +20,7 @@ SECRET_KEY='' ### url to the database server: #DB_URL = 'mysql://user:pass@host/db_name' -#DB_URL = 'postgres://user:pass@host/db_name' +#DB_URL = 'postgresql://user:pass@host/db_name' DB_URL = 'sqlite:////var/tmp/pagure_dev.sqlite' ### Send FedMsg notifications of events in pagure