def upgrade():
### commands auto generated by Alembic - please adjust! ###
op.create_table('machine_statistic',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('type', sa.String(length=64), nullable=True),
sa.Column('timestamp', sa.String(length=64), nullable=True),
sa.Column('userid', sa.String(length=64), nullable=True),
sa.Column('netcode', sa.String(length=64), nullable=True),
sa.Column('login_time', sa.DateTime(), nullable=True),
sa.PrimaryKeyConstraint('id'),
sa.UniqueConstraint('id')
)
op.create_index(op.f('ix_machine_statistic_login_time'), 'machine_statistic', ['login_time'], unique=False)
op.alter_column(u'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 ###
评论列表
文章目录