Merge pull request #3052 from coreos-inc/joseph.schorr/QUAY-912/fix-postgres-migration
Postgres requires defaults for non-nullable cols, even integer ones
This commit is contained in:
commit
916441b5f4
1 changed files with 2 additions and 2 deletions
|
@ -16,8 +16,8 @@ from sqlalchemy.dialects import mysql
|
|||
|
||||
def upgrade(tables):
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.add_column('repositorybuildtrigger', sa.Column('successive_failure_count', sa.Integer(), nullable=False))
|
||||
op.add_column('repositorybuildtrigger', sa.Column('successive_internal_error_count', sa.Integer(), nullable=False))
|
||||
op.add_column('repositorybuildtrigger', sa.Column('successive_failure_count', sa.Integer(), server_default='0', nullable=False))
|
||||
op.add_column('repositorybuildtrigger', sa.Column('successive_internal_error_count', sa.Integer(), server_default='0', nullable=False))
|
||||
# ### end Alembic commands ###
|
||||
|
||||
op.bulk_insert(
|
||||
|
|
Reference in a new issue