Blame alembic/script.py.mako
|
Pierre-Yves Chibon |
a95dda |
"""${message}
|
|
Pierre-Yves Chibon |
a95dda |
|
|
Pierre-Yves Chibon |
a95dda |
Revision ID: ${up_revision}
|
|
Pierre-Yves Chibon |
a95dda |
Revises: ${down_revision}
|
|
Pierre-Yves Chibon |
a95dda |
Create Date: ${create_date}
|
|
Pierre-Yves Chibon |
a95dda |
|
|
Pierre-Yves Chibon |
a95dda |
"""
|
|
Pierre-Yves Chibon |
a95dda |
|
|
Pierre-Yves Chibon |
a95dda |
# revision identifiers, used by Alembic.
|
|
Pierre-Yves Chibon |
a95dda |
revision = ${repr(up_revision)}
|
|
Pierre-Yves Chibon |
a95dda |
down_revision = ${repr(down_revision)}
|
|
Pierre-Yves Chibon |
a95dda |
|
|
Pierre-Yves Chibon |
a95dda |
from alembic import op
|
|
Pierre-Yves Chibon |
a95dda |
import sqlalchemy as sa
|
|
Pierre-Yves Chibon |
a95dda |
${imports if imports else ""}
|
|
Pierre-Yves Chibon |
a95dda |
|
|
Pierre-Yves Chibon |
a95dda |
def upgrade():
|
|
Pierre-Yves Chibon |
a95dda |
${upgrades if upgrades else "pass"}
|
|
Pierre-Yves Chibon |
a95dda |
|
|
Pierre-Yves Chibon |
a95dda |
|
|
Pierre-Yves Chibon |
a95dda |
def downgrade():
|
|
Pierre-Yves Chibon |
a95dda |
${downgrades if downgrades else "pass"}
|