def upgrade():
conn = op.get_bind()
q = conn.execute("SELECT count_type FROM packages WHERE name='Standard package'")
r = q.fetchall()
if len(r) and len(r[0]) and r[0][0] is None:
conn.execute("UPDATE packages SET count_type='fixed' WHERE name='Standard package'")
op.alter_column('packages', 'count_type', nullable=False, server_default='fixed')
2c64986d76b9_change_package_payment_type.py 文件源码
python
阅读 21
收藏 0
点赞 0
评论 0
评论列表
文章目录