def upgrade():
### 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.NUMERIC(precision=2, scale=0),
type_=sa.Integer(),
existing_nullable=False)
### end Alembic commands ###
6af6b8665ff1_store_price_as_integer_cents.py 文件源码
python
阅读 19
收藏 0
点赞 0
评论 0
评论列表
文章目录