No Description

script.py.mako 494B

123456789101112131415161718192021222324
  1. """${message}
  2. Revision ID: ${up_revision}
  3. Revises: ${down_revision | comma,n}
  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. branch_labels = ${repr(branch_labels)}
  13. depends_on = ${repr(depends_on)}
  14. def upgrade():
  15. ${upgrades if upgrades else "pass"}
  16. def downgrade():
  17. ${downgrades if downgrades else "pass"}