Re: is this a bug ?target_metadata

2018-03-26 Thread Mike Bayer
all three of your files do: from database import Base so that is just one Base object, one metadata object. they are all the same. if you wanted them separate you'd need to call upon "Base = declarative_base()" in each module individually. On Sat, Mar 24, 2018 at 1:11 PM,

is this a bug ?target_metadata

2018-03-24 Thread jackadam1981
myproject just like this: ├─migrate │ ├─versions │ │ └─94d0834e4282_.py │ │ └─__pycache__ │ └─evn.py │ └─README │ └─evn.py │ └─cript.py.mako ├─models │ └─test1.py │ └─test2.py │ └─test3.py ├─__pycache__ ├─alembic.ini ├─database.py └─main.py database.py: from sqlalchemy