Add a server default for the broken migration.

This commit is contained in:
Jake Moshenko 2015-07-14 16:58:58 -04:00
parent ebecb1dc89
commit eec7886e01

View file

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