Fix the default value for the migration to use a string

This commit is contained in:
Jake Moshenko 2014-09-03 13:34:36 -04:00
parent 18ec0c3e0a
commit 21f7acf7ca

View file

@ -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 ###