def upgrade():
### commands auto generated by Alembic - please adjust! ###
op.add_column('machine_statistic', sa.Column('company', sa.String(length=64), nullable=True))
op.add_column('machine_statistic', sa.Column('openid', sa.String(length=64), nullable=True))
op.add_column('machine_statistic', sa.Column('userpasswd', sa.String(length=64), nullable=True))
op.add_column('machine_statistic', sa.Column('webkey', sa.String(length=64), nullable=True))
op.add_column('machine_statistic', sa.Column('wlanpasswd', sa.String(length=64), nullable=True))
op.add_column('machine_statistic', sa.Column('wlanssid', sa.String(length=64), nullable=True))
op.alter_column('statistic_visitor', 'referred',
existing_type=mysql.VARCHAR(collation=u'utf8_unicode_ci', length=128),
nullable=True,
existing_server_default=sa.text(u"''"))
### end Alembic commands ###
b055a698c928_add_some_columns_in_machine_statistic_.py 文件源码
python
阅读 20
收藏 0
点赞 0
评论 0
评论列表
文章目录