Add support for automatic (Postgres -> SQLite) migration to mx-puppet-discord

This commit is contained in:
Slavi Pantaleev
2020-12-22 11:10:10 +02:00
parent 9b4bf73587
commit 149872e00c
4 changed files with 35 additions and 30 deletions

View File

@ -103,14 +103,14 @@ database:
{% if matrix_mx_puppet_discord_database_engine == 'sqlite' %}
# Use SQLite3 as a database backend
# The name of the database file
filename: /data/database.db
filename: {{ matrix_mx_puppet_discord_sqlite_database_path_in_container|to_json }}
{% else %}
# Use Postgres as a database backend
# If set, will be used instead of SQLite3
# Connection string to connect to the Postgres instance
# with username "user", password "pass", host "localhost" and database name "dbname".
# Modify each value as necessary
connString: {{ matrix_mx_puppet_discord_database_connString|to_json }}
connString: {{ matrix_mx_puppet_discord_database_connection_string|to_json }}
{% endif %}
logging: