Fix the default value for the migration to use a string
This commit is contained in:
parent
18ec0c3e0a
commit
21f7acf7ca
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ from sqlalchemy.dialects import mysql
|
|||
|
||||
def upgrade():
|
||||
### commands auto generated by Alembic - please adjust! ###
|
||||
op.add_column('user', sa.Column('invalid_login_attempts', sa.Integer(), nullable=False, server_default=0))
|
||||
op.add_column('user', sa.Column('invalid_login_attempts', sa.Integer(), nullable=False, server_default="0"))
|
||||
op.add_column('user', sa.Column('last_invalid_login', sa.DateTime(), nullable=False, server_default=sa.func.now()))
|
||||
### end Alembic commands ###
|
||||
|
||||
|
|
Reference in a new issue