def downgrade_rdr():
# ### commands auto generated by Alembic - please adjust! ###
op.alter_column('participant_summary', 'middle_name',
existing_type=sa.String(length=255),
type_=mysql.VARCHAR(length=80),
existing_nullable=True)
op.alter_column('participant_summary', 'last_name',
existing_type=sa.String(length=255),
type_=mysql.VARCHAR(length=80),
existing_nullable=False)
op.alter_column('participant_summary', 'first_name',
existing_type=sa.String(length=255),
type_=mysql.VARCHAR(length=80),
existing_nullable=False)
op.alter_column('participant_summary', 'city',
existing_type=sa.String(length=255),
type_=mysql.VARCHAR(length=80),
existing_nullable=True)
op.drop_column('code_history', 'short_value')
op.drop_column('code', 'short_value')
# ### end Alembic commands ###
8d12872e0b77_add_short_value.py 文件源码
python
阅读 25
收藏 0
点赞 0
评论 0
评论列表
文章目录