Re: autogenerate always generates CREATE TABLE for existing views when they are defined in code

2015-12-24 Thread Mike Bayer
On 12/24/2015 12:15 PM, Jonathan Beluch wrote: > I have a view that exists in the database and is defined in the metadata > object via a Table() construct. When I use autogenerate, alembic always > thinks that the view doesn't exist in the DB (it does) and so generates > a create table operation.

autogenerate always generates CREATE TABLE for existing views when they are defined in code

2015-12-24 Thread Jonathan Beluch
I have a view that exists in the database and is defined in the metadata object via a Table() construct. When I use autogenerate, alembic always thinks that the view doesn't exist in the DB (it does) and so generates a create table operation. I think it has to do with an asymmetry in autogenera