diff --git a/data/migrations/versions/17aff2e1354e_add_automatic_disable_of_build_triggers.py b/data/migrations/versions/17aff2e1354e_add_automatic_disable_of_build_triggers.py index ca71dd73a..b4c075b96 100644 --- a/data/migrations/versions/17aff2e1354e_add_automatic_disable_of_build_triggers.py +++ b/data/migrations/versions/17aff2e1354e_add_automatic_disable_of_build_triggers.py @@ -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(