script.py.mako 412 B

12345678910111213141516171819202122
  1. """${message}
  2. Revision ID: ${up_revision}
  3. Revises: ${down_revision}
  4. Create Date: ${create_date}
  5. """
  6. # revision identifiers, used by Alembic.
  7. revision = ${repr(up_revision)}
  8. down_revision = ${repr(down_revision)}
  9. from alembic import op
  10. import sqlalchemy as sa
  11. ${imports if imports else ""}
  12. def upgrade():
  13. ${upgrades if upgrades else "pass"}
  14. def downgrade():
  15. ${downgrades if downgrades else "pass"}