Merge pull request #2565 from coreos-inc/HOTFIX-2.3.1

fix(migration): bring hotfix from v2.3.0 into master
This commit is contained in:
Erica 2017-04-21 17:12:51 -04:00 committed by GitHub
commit fc5c255965
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
### v2.3.1
**IMPORTANT NOTE:** This release fixes the 2.3.0 migration. If you experienced an error during the 2.3.0 migration, manually rollback and then upgrade your quay instance to 2.3.1.
- Fixed: Specify default server value for new bool field added to the repository table
### v2.3.0
- Added: LDAP Team Sync support (#2387, #2527)

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'},