"Fossies" - the Fresh Open Source Software Archive

Member "murano-8.0.0/murano/db/migration/alembic_migrations/script.py.mako" (16 Oct 2019, 1013 Bytes) of package /linux/misc/openstack/murano-8.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.

    1 # Copyright ${create_date.year} OpenStack Foundation.
    2 #
    3 # Licensed under the Apache License, Version 2.0 (the "License");
    4 # you may not use this file except in compliance with the License.
    5 # You may obtain 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,
   11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
   12 # implied.
   13 # See the License for the specific language governing permissions and
   14 # limitations under the License.
   15 
   16 """${message}
   17 
   18 Revision ID: ${up_revision}
   19 Revises: ${down_revision}
   20 Create Date: ${create_date}
   21 
   22 """
   23 
   24 # revision identifiers, used by Alembic.
   25 revision = ${repr(up_revision)}
   26 down_revision = ${repr(down_revision)}
   27 
   28 from alembic import op
   29 import sqlalchemy as sa
   30 ${imports if imports else ""}
   31 
   32 def upgrade():
   33     ${upgrades if upgrades else "pass"}
   34 
   35 
   36 def downgrade():
   37     ${downgrades if downgrades else "pass"}