"Fossies" - the Fresh Open Source Software Archive

Member "cloudkitty-13.0.0/cloudkitty/storage/v1/sqlalchemy/alembic/versions/792b438b663_added_tenant_informations.py" (14 Oct 2020, 979 Bytes) of package /linux/misc/openstack/cloudkitty-13.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 "792b438b663_added_tenant_informations.py" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 12.1.0_vs_13.0.0.

    1 #
    2 # Licensed under the Apache License, Version 2.0 (the "License"); you may
    3 # not use this file except in compliance with the License. You may obtain
    4 # a copy of the License at
    5 #
    6 #      http://www.apache.org/licenses/LICENSE-2.0
    7 #
    8 # Unless required by applicable law or agreed to in writing, software
    9 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
   10 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
   11 # License for the specific language governing permissions and limitations
   12 # under the License.
   13 
   14 """added tenant informations
   15 
   16 Revision ID: 792b438b663
   17 Revises: 17fd1b237aa3
   18 Create Date: 2014-12-02 13:12:11.328534
   19 
   20 """
   21 
   22 # revision identifiers, used by Alembic.
   23 revision = '792b438b663'
   24 down_revision = '17fd1b237aa3'
   25 
   26 from alembic import op  # noqa: E402
   27 import sqlalchemy as sa  # noqa: E402
   28 
   29 
   30 def upgrade():
   31     op.add_column('rated_data_frames',
   32                   sa.Column('tenant_id', sa.String(length=32), nullable=True))