-
-
Notifications
You must be signed in to change notification settings - Fork 268
specify certain database in command-line #120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Michael Bayer (@zzzeek) wrote: because alembic has no notion of a single database URL, it can't be a fixed argument like that. the best approach would be an option like -x "opt=value" which allows arbitrary configuration options to be added to the command line. |
Michael Bayer (@zzzeek) wrote: amazingly, I added this feature the other day in response to a totally different issue, and I named it "-x" just like I proposed here. So with 0.6.0 you'd say:
then in your env.py:
|
Changes by Michael Bayer (@zzzeek):
|
Michael Bayer (@zzzeek) wrote: I've added the above example to the 0.6.0 documentation (and also gave it a quick test). |
Changes by Michael Bayer (@zzzeek):
|
Migrated issue, originally created by holsety huang (@holsety)
I want something like:
alembic -d mysql://user:password@localhost/database upgrade head
specify the database in config file is not so convenient.
The text was updated successfully, but these errors were encountered: