Merge pull request #2656 from charltonaustin/fix_migration_notification_number
fix(add notification number): add explicit default
This commit is contained in:
commit
34cce04f2b
1 changed files with 4 additions and 1 deletions
|
@ -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'},
|
||||
])
|
||||
|
|
Reference in a new issue