Skip to content
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

depends_on needs to be built into alembic revision + internal API #311

sqlalchemy-bot opened this issue Jul 28, 2015 · 2 comments


Copy link

Migrated issue, originally created by Michael Bayer (@zzzeek)

e.g. "alembic revision ... --depends-on=foo --depends-on=bar" , plus need "depends_on" added to MigrationScript constructor. depends_on seems to be present in ScriptDirectory.generate_revision() as well as the, so that's already there, odd that it isn't in the command interface.

Copy link

Michael Bayer (@zzzeek) wrote:

  • Added new multiple-capable argument --depends-on to the
    alembic revision command, allowing depends_on to be
    established at the command line level rather than having to edit
    the file after the fact. depends_on identifiers may also be
    specified as branch names at the command line or directly within
    the migration file. The values may be specified as partial
    revision numbers from the command line which will be resolved to
    full revision numbers in the output file.
    fixes depends_on needs to be built into alembic revision + internal API #311


Copy link

Changes by Michael Bayer (@zzzeek):

  • changed status to closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

1 participant