Merge pull request #2656 from charltonaustin/fix_migration_notification_number

fix(add notification number): add explicit default
This commit is contained in:
Evan Cordell 2017-05-22 09:59:39 -04:00 committed by GitHub
commit 34cce04f2b

View file

@ -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'},
])