Re: alembic vs system=True columns

2018-11-06 Thread Riccardo Magliocchetti
Thanks a lot Mike! On Wednesday, October 31, 2018 at 7:43:51 PM UTC+1, Mike Bayer wrote: > here's the issue: > > > https://bitbucket.org/zzzeek/alembic/issues/515/system-true-not-generated-for-column > >

Re: alembic vs system=True columns

2018-10-31 Thread Riccardo Magliocchetti
Il 31/10/18 16:32, Mike Bayer ha scritto: On Wed, Oct 31, 2018 at 11:00 AM Riccardo Magliocchetti wrote: Hello, we'd like to use Postgresql xmin column for optimistic concurrency, so we declared the column as: xmin = Column("xmin", Integer, system=True, server_default=FetchedValue())

alembic vs system=True columns

2018-10-31 Thread Riccardo Magliocchetti
Hello, we'd like to use Postgresql xmin column for optimistic concurrency, so we declared the column as: xmin = Column("xmin", Integer, system=True, server_default=FetchedValue()) The problem is when autogenerating a migration with alembic (via flask-migrate) the xmin column is added to