fix(migrations): fix column additional w/ boolean default
This commit is contained in:
parent
911896511f
commit
c5b411b704
1 changed files with 1 additions and 1 deletions
|
@ -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'},
|
||||
|
|
Reference in a new issue