gabriel / musehub public
0014_symbol_index_intel_summary.py python
27 lines 598 B
Raw
sha256:a10adeeb7a0169cb9900f9806ed7a973047258abb6283724fe55e8eb68ff3f0a init: musehub initial commit Human 171 days ago
1 """Add intel_summary JSON column to musehub_symbol_index.
2
3 Pre-computed at index-build time so the repo home page never needs to
4 load the full symbol_history blob or run compute_intel at request time.
5
6 Revision ID: 0014
7 Revises: 0013
8 """
9
10 from alembic import op
11 import sqlalchemy as sa
12
13 revision = "0014"
14 down_revision = "0013"
15 branch_labels = None
16 depends_on = None
17
18
19 def upgrade() -> None:
20 op.add_column(
21 "musehub_symbol_index",
22 sa.Column("intel_summary", sa.Text(), nullable=True),
23 )
24
25
26 def downgrade() -> None:
27 op.drop_column("musehub_symbol_index", "intel_summary")
File History 1 commit
sha256:a10adeeb7a0169cb9900f9806ed7a973047258abb6283724fe55e8eb68ff3f0a init: musehub initial commit Human 171 days ago