accountant/accountant/migrations/script.py.mako
2016-06-17 10:48:00 +02:00

25 lines
554 B
Mako

"""${message}
Revision ID: ${up_revision}
Revises: ${down_revision | comma,n}
Create Date: ${create_date}
"""
# revision identifiers, used by Alembic.
revision = ${repr(up_revision)} # flake8: noqa
down_revision = ${repr(down_revision)} # flake8: noqa
branch_labels = ${repr(branch_labels)} # flake8: noqa
depends_on = ${repr(depends_on)} # flake8: noqa
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"}