"Fossies" - the Fresh Open Source Software Archive

Member "cloudkitty-13.0.0/cloudkitty/db/sqlalchemy/alembic/versions/385e33fef139_added_priority_to_modules_state.py" (14 Oct 2020, 974 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 "385e33fef139_added_priority_to_modules_state.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 priority to modules_state.
   15 
   16 Revision ID: 385e33fef139
   17 Revises: 2ac2217dcbd9
   18 Create Date: 2015-03-17 17:50:15.229896
   19 
   20 """
   21 
   22 # revision identifiers, used by Alembic.
   23 revision = '385e33fef139'
   24 down_revision = '2ac2217dcbd9'
   25 
   26 from alembic import op  # noqa: E402
   27 import sqlalchemy as sa  # noqa: E402
   28 
   29 
   30 def upgrade():
   31     op.add_column(
   32         'modules_state',
   33         sa.Column('priority', sa.Integer(), nullable=True))