gabriel / musehub public
0016_refactor_events_commit_message.py python
40 lines 1.1 KB
Raw
sha256:20b27796ed512236119feef48b4577a8fd9ded05a15267dd4e6da23604ad1f1a docs: update Suggested Ownership Split table to reflect ful… Sonnet 5 30 days ago
1 """detect-refactor: add commit_message column and composite kind index
2
3 ``commit_message`` lets the UI display the commit that introduced each
4 refactoring event without a separate join or subprocess call.
5
6 The composite index ``ix_intel_refactor_events_repo_kind`` on
7 ``(repo_id, kind)`` accelerates per-kind filtering used by the
8 intel/detect-refactor page (implementation / signature / move / rename).
9
10 Revision ID: 0016
11 Revises: 0015
12 """
13
14 from alembic import op
15 import sqlalchemy as sa
16
17 revision = "0016"
18 down_revision = "0015"
19 branch_labels = None
20 depends_on = None
21
22
23 def upgrade() -> None:
24 op.add_column(
25 "musehub_intel_refactor_events",
26 sa.Column("commit_message", sa.Text, nullable=True),
27 )
28 op.create_index(
29 "ix_intel_refactor_events_repo_kind",
30 "musehub_intel_refactor_events",
31 ["repo_id", "kind"],
32 )
33
34
35 def downgrade() -> None:
36 op.drop_index(
37 "ix_intel_refactor_events_repo_kind",
38 table_name="musehub_intel_refactor_events",
39 )
40 op.drop_column("musehub_intel_refactor_events", "commit_message")
File History 3 commits
sha256:20b27796ed512236119feef48b4577a8fd9ded05a15267dd4e6da23604ad1f1a docs: update Suggested Ownership Split table to reflect ful… Sonnet 5 30 days ago
sha256:8ea2f75226d5834770ccaddbaa6efda1cc337446fd481bb385de8bec4555ae79 docs: Section 9 CI pipeline — confirm job queue is idempote… Sonnet 5 30 days ago
sha256:80e1a60a39562f6e616aaafbb27487f03abbec7d8ffc6164302b7a0c0bfc63ee docs: check off Section 0 items verified in inventory doc, … Sonnet 5 31 days ago