def upgrade():
### commands auto generated by Alembic - please adjust! ###
op.add_column('node', sa.Column('is_active', sa.Boolean(), server_default='1', nullable=False))
op.add_column('node', sa.Column('last_ip', postgresql.INET(), nullable=True))
### end Alembic commands ###
236318ee3d3e_add_is_active_and_last_ip_columns.py 文件源码
python
阅读 22
收藏 0
点赞 0
评论 0
评论列表
文章目录