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

"keep_existing" flag on Table - "extend_existing" will deprecate 'useexisting' #2109

Closed
sqlalchemy-bot opened this issue Mar 24, 2011 · 2 comments
Labels
feature schema things related to the DDL related objects like Table, Column, CreateIndex, etc.
Milestone

Comments

@sqlalchemy-bot
Copy link
Collaborator

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

Table("foo", metadata, 
x, y, z, UniqueConstraint(...),
keep_existing=True)

uses the existing table "foo" and ignores all arguments. This prevents redundant constraints, sequences, etc. going forward this is probably what people want instead of 'useexisting'.

the deprecation message should read "superceded by 'keep_existing' and 'extend_existing'".

@sqlalchemy-bot
Copy link
Collaborator Author

Michael Bayer (@zzzeek) wrote:

d34bc7d

@sqlalchemy-bot
Copy link
Collaborator Author

Changes by Michael Bayer (@zzzeek):

  • changed status to closed

@sqlalchemy-bot sqlalchemy-bot added feature schema things related to the DDL related objects like Table, Column, CreateIndex, etc. labels Nov 27, 2018
@sqlalchemy-bot sqlalchemy-bot added this to the 0.7.0 milestone Nov 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature schema things related to the DDL related objects like Table, Column, CreateIndex, etc.
Projects
None yet
Development

No branches or pull requests

1 participant