diff development.ini @ 6019:ccc66ed2f85b

db: enable use of main Kallithea config as Alembic config Newly generated Kallithea config .ini files will be valid Alembic config files, eliminating the need for a separate alembic.ini config redundantly specifying the database connection string. We reference the Alembic migration environment using kallithea:alembic, which should work independently of how Kallithea is installed. We also configure a default 'alembic' log level of WARNING, to reduce the amount of clutter in the config file, reduce the changes needed to upgrade existing config files for use with Alembic, and allowing us to change the default Alembic log level for all users down the road. (It makes sense to define Alembic logging in code, while all other loggers are configured in the configuration file, because Alembic is special: it runs on the command line, not as part of the web app.)
author Søren Løvborg <sorenl@unity3d.com>
date Mon, 18 Jul 2016 13:32:34 +0200
parents 110b504916b6
children d6942b2b421c
line wrap: on
line diff
--- a/development.ini	Mon Jul 04 17:18:49 2016 +0200
+++ b/development.ini	Mon Jul 18 13:32:34 2016 +0200
@@ -502,6 +502,13 @@
 sqlalchemy.db1.pool_recycle = 3600
 
 ################################
+### ALEMBIC CONFIGURATION   ####
+################################
+
+[alembic]
+script_location = kallithea:alembic
+
+################################
 ### LOGGING CONFIGURATION   ####
 ################################