aodh/ceilometer/storage/sqlalchemy/alembic/script.py.mako
Alexei Kornienko 19acddf600 Added alembic migrations
Added alembic dependency to requirements
Created alembic config files

To create alembic migration:
$ cd ./ceilometer/storage/sqlalchemy/alembic
$ alembic revision -m "migration_description"

Related to blueprint convert-to-alembic

Change-Id: I59cf409106e0ba8bb819f7fc6aeddd0a837fee4c
2013-07-16 16:07:13 +03:00

23 lines
412 B
Mako

"""${message}
Revision ID: ${up_revision}
Revises: ${down_revision}
Create Date: ${create_date}
"""
# revision identifiers, used by Alembic.
revision = ${repr(up_revision)}
down_revision = ${repr(down_revision)}
from alembic import op
import sqlalchemy as sa
${imports if imports else ""}
def upgrade():
${upgrades if upgrades else "pass"}
def downgrade():
${downgrades if downgrades else "pass"}