Fix Alembic integration in datanommer

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
Aurélien Bompard 2022-05-27 13:55:52 +02:00
parent e05049f94d
commit e13e96056c
No known key found for this signature in database
GPG key ID: 31584CFEB9BF64AD
2 changed files with 2 additions and 1 deletions

View file

@ -1,6 +1,6 @@
[alembic] [alembic]
# path to migration scripts # path to migration scripts
script_location = /opt/app-root/src/datanommer.models/alembic script_location = datanommer.models:alembic
# database url # database url
sqlalchemy.url = postgresql://{{ datanommerDBUser }}:{{ (env == 'production')|ternary(datanommerDBPassword, datanommer_stg_db_password) }}@db-datanommer{{ (env == 'production')|ternary('02', '01') }}{{ env_suffix }}.iad2.fedoraproject.org/datanommer2 sqlalchemy.url = postgresql://{{ datanommerDBUser }}:{{ (env == 'production')|ternary(datanommerDBPassword, datanommer_stg_db_password) }}@db-datanommer{{ (env == 'production')|ternary('02', '01') }}{{ env_suffix }}.iad2.fedoraproject.org/datanommer2

View file

@ -33,6 +33,7 @@ routing_keys = ["#"]
[consumer_config] [consumer_config]
datanommer_sqlalchemy_url = 'postgresql://{{ datanommerDBUser }}:{{ (env == 'production')|ternary(datanommerDBPassword, datanommer_stg_db_password) }}@db-datanommer{{ (env == 'production')|ternary('02', '01') }}{{ env_suffix }}.iad2.fedoraproject.org/datanommer2' datanommer_sqlalchemy_url = 'postgresql://{{ datanommerDBUser }}:{{ (env == 'production')|ternary(datanommerDBPassword, datanommer_stg_db_password) }}@db-datanommer{{ (env == 'production')|ternary('02', '01') }}{{ env_suffix }}.iad2.fedoraproject.org/datanommer2'
alembic_ini = "/etc/fedora-messaging/alembic.ini"
[log_config] [log_config]
version = 1 version = 1