Add a server default for the broken migration.
This commit is contained in:
parent
ebecb1dc89
commit
eec7886e01
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ import sqlalchemy as sa
|
|||
|
||||
def upgrade(tables):
|
||||
### commands auto generated by Alembic - please adjust! ###
|
||||
op.add_column('user', sa.Column('enabled', sa.Boolean(), nullable=False, default=True))
|
||||
op.add_column('user', sa.Column('enabled', sa.Boolean(), nullable=False, default=True, server_default="1"))
|
||||
### end Alembic commands ###
|
||||
|
||||
|
||||
|
|
Reference in a new issue