Spaces:
Paused
Paused
Download migrations/script.py.mako from tareek/honcho-api: direct link, hf CLI and curl.
- Browser
- Download file 683 Bytes
-
https://huggingface.co/spaces/tareek/honcho-api/resolve/main/migrations/script.py.mako
- Command line
-
hf download hf://spaces/tareek/honcho-api/migrations/script.py.mako
-
curl -L -o script.py.mako https://huggingface.co/spaces/tareek/honcho-api/resolve/main/migrations/script.py.mako
683 Bytes
| """${message} | |
| Revision ID: ${up_revision} | |
| Revises: ${down_revision | comma,n} | |
| Create Date: ${create_date} | |
| """ | |
| from collections.abc import Sequence | |
| from alembic import op | |
| import sqlalchemy as sa | |
| ${imports if imports else ""} | |
| from migrations.utils import get_schema | |
| # revision identifiers, used by Alembic. | |
| revision: str = ${repr(up_revision)} | |
| down_revision: str | None = ${repr(down_revision)} | |
| branch_labels: str | Sequence[str] | None = ${repr(branch_labels)} | |
| depends_on: str | Sequence[str] | None = ${repr(depends_on)} | |
| schema = get_schema() | |
| def upgrade() -> None: | |
| ${upgrades if upgrades else "pass"} | |
| def downgrade() -> None: | |
| ${downgrades if downgrades else "pass"} | |