📜  flask db upgrade 添加新的不可为空的列 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:34.094000             🧑  作者: Mango

代码示例2
op.add_column('mytable', sa.Column(
    'mycolumn', 
    sa.String(), 
    nullable=False, 
    server_default='lorem ipsum', #  <---  add this
))