fix(add notification number): add explicit default
there is a possibility that this will not work with postgres Issue: https://www.pivotaltracker.com/story/show/144646649 - [ ] It works! - [ ] Comments provide sufficient explanations for the next contributor - [ ] Tests cover changes and corner cases - [ ] Follows Quay syntax patterns and format
This commit is contained in:
parent
a71f60a9c1
commit
52750e74ee
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