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

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

Comments

Projects
None yet
1 participant
@sqlalchemy-bot

sqlalchemy-bot commented Jul 28, 2015

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 script.py.mako, so that's already there, odd that it isn't in the command interface.

@sqlalchemy-bot

This comment has been minimized.

sqlalchemy-bot commented Jul 28, 2015

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 #311

3836001

@sqlalchemy-bot

This comment has been minimized.

sqlalchemy-bot commented Jul 28, 2015

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