fix(migrations): fix column additional w/ boolean default

This commit is contained in:
EvB 2017-04-21 11:56:13 -04:00
parent 911896511f
commit c5b411b704

View file

@ -15,7 +15,7 @@ import sqlalchemy as sa
def upgrade(tables):
### commands auto generated by Alembic - please adjust! ###
op.add_column('repository', sa.Column('trust_enabled', sa.Boolean(), nullable=False))
op.add_column('repository', sa.Column('trust_enabled', sa.Boolean(), nullable=False, server_default=sa.sql.expression.false()))
### end Alembic commands ###
op.bulk_insert(tables.logentrykind, [
{'name': 'change_repo_trust'},