neutron-lbaas/neutron_lbaas/db/migration/alembic_migrations/versions/newton/expand/844352f9fe6f_add_healthmoni...

35 lines
1012 B
Python

# Copyright 2016 Rackspace
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
"""Add healthmonitor max retries down
Revision ID: 844352f9fe6f
Revises: 62deca5010cd
Create Date: 2016-04-21 15:32:05.647920
"""
# revision identifiers, used by Alembic.
revision = '844352f9fe6f'
down_revision = '62deca5010cd'
from alembic import op
import sqlalchemy as sa
def upgrade():
op.add_column('lbaas_healthmonitors', sa.Column(
u'max_retries_down', sa.Integer(), nullable=True))