1
0

script.py.mako 413 B

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