diff --git a/data/migrations/versions/dc4af11a5f90_add_notification_number_of_failures_.py b/data/migrations/versions/dc4af11a5f90_add_notification_number_of_failures_.py index 363ae7438..ffde9d687 100644 --- a/data/migrations/versions/dc4af11a5f90_add_notification_number_of_failures_.py +++ b/data/migrations/versions/dc4af11a5f90_add_notification_number_of_failures_.py @@ -15,7 +15,10 @@ from alembic import op def upgrade(tables): - op.add_column('repositorynotification', sa.Column('number_of_failures', sa.Integer(), nullable=False)) + op.add_column('repositorynotification', sa.Column('number_of_failures', + sa.Integer(), + nullable=False, + server_default='0')) op.bulk_insert(tables.logentrykind, [ {'name': 'reset_repo_notification'}, ])