Patterns to integrate Alembic with an multi-config/database deployment #1678
Unanswered
jvanasco
asked this question in
Usage Questions
Replies: 1 comment 7 replies
-
if these have .ini files in them, those are alembic.ini files? you'd call otherwise where is your alembic config here? |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a Python application that is mostly built off the Pylons framework.
To create a deployment/installation, one does the following:
data_development
,data_production
, ordata_testing
.config.ini
file in that directorySo the structure is roughly:
I would like to integrate Alembic in a manner through which Users only have to manage a file or section within each deployment directory. Users should never touch files in the root of the app; everything is compartmentalized within each deployment file.
I can't figure out if this is easily doable or even possible. Aside from playing with env.py to dynamically change vars, the closest thing I found in the docs is using the
name
flag to require editing a central file.Can anyone point me in the right direction?
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions