6af6b8665ff1_store_price_as_integer_cents.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:flask-react-redux-demo 作者: eddowh 项目源码 文件源码
def downgrade():
    ### commands auto generated by Alembic - please adjust! ###
    with op.batch_alter_table('restaurants_menuitem', schema=None) as batch_op:
        batch_op.alter_column('price',
               existing_type=sa.Integer(),
               type_=sa.NUMERIC(precision=2, scale=0),
               existing_nullable=False)

    ### end Alembic commands ###
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号