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

need more checks for alembic_version in autogen #28

Closed
sqlalchemy-bot opened this Issue Feb 5, 2012 · 3 comments

Comments

Projects
None yet
1 participant
@sqlalchemy-bot

sqlalchemy-bot commented Feb 5, 2012

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

if meta.reflect() is used to get all tables, then alembic_version is in the given metadata being compared, so need to skip on this end as well as when autogen reads from the DB.

@sqlalchemy-bot

This comment has been minimized.

sqlalchemy-bot commented Jun 7, 2013

Changes by Michael Bayer (@zzzeek):

  • added labels: autogenerate - detection
@sqlalchemy-bot

This comment has been minimized.

sqlalchemy-bot commented Oct 30, 2014

Michael Bayer (@zzzeek) wrote:

  • If the "alembic_version" table is present in the target metadata,
    autogenerate will skip this also. Pull request courtesy
    Dj Gilcrease. fixes #28
  • The :paramref:.EnvironmentContext.configure.version_table
    and :paramref:.EnvironmentContext.configure.version_table_schema
    arguments are now honored during the autogenerate process, such that
    these names will be used as the "skip" names on both the database
    reflection and target metadata sides. fixes #77

9650ccf

@sqlalchemy-bot

This comment has been minimized.

sqlalchemy-bot commented Oct 30, 2014

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