I am new to alembic and sqlalchemy world
Lets say I have model:
class Model(Base):
__tablename__ = 'models'
id = Column(Integer, primary_key=True)
value = Column(Integer, CheckContraint('value >= 0'))
and if I do alembic --config=development.ini revision --autogenerate -m "init" I get for example
def upgrade():
op.create_table('models',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('value', sa.Integer())
and here I miss create_check_constraint how can I do it automatic or should I add it manually? I'd like it to work with postgresql