"Fossies" - the Fresh Open Source Software Archive

Member "glance-19.0.0/glance/db/sqlalchemy/alembic_migrations/script.py.mako" (16 Oct 2019, 431 Bytes) of package /linux/misc/openstack/glance-19.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 """${message}
    2 
    3 Revision ID: ${up_revision}
    4 Revises: ${down_revision | comma,n}
    5 Create Date: ${create_date}
    6 
    7 """
    8 
    9 # revision identifiers, used by Alembic.
   10 revision = ${repr(up_revision)}
   11 down_revision = ${repr(down_revision)}
   12 branch_labels = ${repr(branch_labels)}
   13 depends_on = ${repr(depends_on)}
   14 
   15 from alembic import op
   16 import sqlalchemy as sa
   17 ${imports if imports else ""}
   18 
   19 def upgrade():
   20     ${upgrades if upgrades else "pass"}