script.py.mako
sha256:c2e5cf2d754ed2fe9a94e879d41ad12ff221d2ac4ac7b45247fcb981c76858bf
docs: Section 8 database/migrations/backups — verified live…
Sonnet 5
24 days ago
| 1 | """${message} |
| 2 | |
| 3 | Revision ID: ${up_revision} |
| 4 | Revises: ${down_revision | comma,n} |
| 5 | Create Date: ${create_date} |
| 6 | |
| 7 | """ |
| 8 | from __future__ import annotations |
| 9 | |
| 10 | from typing import Sequence, Union |
| 11 | |
| 12 | from alembic import op |
| 13 | import sqlalchemy as sa |
| 14 | ${imports if imports else ""} |
| 15 | |
| 16 | # revision identifiers, used by Alembic. |
| 17 | revision: str = ${repr(up_revision)} |
| 18 | down_revision: Union[str, None] = ${repr(down_revision)} |
| 19 | branch_labels: Union[str, Sequence[str], None] = ${repr(branch_labels)} |
| 20 | depends_on: Union[str, Sequence[str], None] = ${repr(depends_on)} |
| 21 | |
| 22 | |
| 23 | def upgrade() -> None: |
| 24 | ${upgrades if upgrades else "pass"} |
| 25 | |
| 26 | |
| 27 | def downgrade() -> None: |
| 28 | ${downgrades if downgrades else "pass"} |
File History
2 commits
sha256:c2e5cf2d754ed2fe9a94e879d41ad12ff221d2ac4ac7b45247fcb981c76858bf
docs: Section 8 database/migrations/backups — verified live…
Sonnet 5
24 days ago
sha256:80e1a60a39562f6e616aaafbb27487f03abbec7d8ffc6164302b7a0c0bfc63ee
docs: check off Section 0 items verified in inventory doc, …
Sonnet 5
24 days ago