gabriel / musehub public
0008_stable_last_changed_commit.py python
33 lines 925 B
Raw
sha256:1dd27e6d5c24550177b01b0a171e8375c07cf046b549e7683364706b6522d3bc docs(#139): mark all 11 checklist items resolved, document … Sonnet 5 13 days ago
1 """stable_last_changed_commit
2
3 Adds ``last_changed_commit`` VARCHAR(128) column to ``musehub_intel_stable``
4 so each stable-symbol row carries the commit ID that last modified the symbol.
5 NULL means the symbol has never been modified (since_start=True cases) or the
6 data was written before this migration.
7
8 Revision ID: 0008
9 Revises: 0007
10 Create Date: 2026-05-03 00:00:00.000000+00:00
11 """
12 from __future__ import annotations
13
14 from typing import Sequence, Union
15
16 import sqlalchemy as sa
17 from alembic import op
18
19 revision: str = "0008"
20 down_revision: Union[str, None] = "0007"
21 branch_labels: Union[str, Sequence[str], None] = None
22 depends_on: Union[str, Sequence[str], None] = None
23
24
25 def upgrade() -> None:
26 op.add_column(
27 "musehub_intel_stable",
28 sa.Column("last_changed_commit", sa.String(128), nullable=True),
29 )
30
31
32 def downgrade() -> None:
33 op.drop_column("musehub_intel_stable", "last_changed_commit")
File History 2 commits
sha256:1dd27e6d5c24550177b01b0a171e8375c07cf046b549e7683364706b6522d3bc docs(#139): mark all 11 checklist items resolved, document … Sonnet 5 13 days ago
sha256:649011bedd713e22f7dca4c4be94bdefbf3b10950d9fc80235928d0b0b823be8 docs: track issue #139 (two-column app-shell refactor) plan… Sonnet 5 13 days ago