"Fossies" - the Fresh Open Source Software Archive

Member "tacker-2.0.0/tacker/db/migration/alembic_migrations/versions/13ecc2dd6f7f_change_nullable_value_of_path_id.py" (16 Oct 2019, 1196 Bytes) of package /linux/misc/openstack/tacker-2.0.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Python source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. For more information about "13ecc2dd6f7f_change_nullable_value_of_path_id.py" see the Fossies "Dox" file reference documentation.

    1 # Copyright 2018 OpenStack Foundation
    2 #
    3 #    Licensed under the Apache License, Version 2.0 (the "License"); you may
    4 #    not use this file except in compliance with the License. You may obtain
    5 #    a copy of the License at
    6 #
    7 #         http://www.apache.org/licenses/LICENSE-2.0
    8 #
    9 #    Unless required by applicable law or agreed to in writing, software
   10 #    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
   11 #    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
   12 #    License for the specific language governing permissions and limitations
   13 #    under the License.
   14 #
   15 
   16 """Change nullable value of path_id
   17 
   18 Revision ID: 13ecc2dd6f7f
   19 Revises: 4747cc26b9c6
   20 Create Date: 2018-07-24 16:47:01.378226
   21 
   22 """
   23 
   24 # revision identifiers, used by Alembic.
   25 revision = '13ecc2dd6f7f'
   26 down_revision = '4747cc26b9c6'
   27 
   28 from alembic import op
   29 import sqlalchemy as sa
   30 
   31 
   32 def upgrade(active_plugins=None, options=None):
   33     op.alter_column('vnffgchains', 'path_id',
   34                existing_type=sa.String(length=255),
   35                nullable=True)
   36     op.alter_column('vnffgnfps', 'path_id',
   37                existing_type=sa.String(length=255),
   38                nullable=True)