# Copyright 2016 Huawei Technologies India Pvt Limited. # # 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. # """bgpaas enh Revision ID: 738d0ae1984e Revises: f399fa0f5f25 Create Date: 2021-05-21 10:25:57.492514 """ from alembic import op import sqlalchemy as sa from neutron_lib.db import constants def upgrade(): op.create_table( 'bgp_speaker_router_associations', sa.Column('id', sa.String(length=constants.UUID_FIELD_SIZE), nullable=False), sa.Column('project_id', sa.String(length=255)), sa.Column('bgp_speaker_id', sa.String(length=36), sa.ForeignKey('bgp_speakers.id'), nullable=False), sa.Column('router_id', sa.String(length=36), sa.ForeignKey('routers.id'), nullable=False), sa.Column('advertise_extra_routes', sa.Boolean, nullable=False), sa.Column('status', sa.String(16)), )