gabriel / musehub public
0011_coupling_indexes.py python
34 lines 788 B
Raw
sha256:8e05daa29ba6702b4a2380a16d690ba31cc099d69c5c859bc6e6f16a0e945f99 Merge 'fix/deploy-memory-limits-and-log-group' into 'dev' —… Human 5 days ago
1 """coupling: add co_changes + file_a indexes to musehub_intel_coupling
2
3 Revision ID: 0011
4 Revises: 0010
5 """
6
7 from __future__ import annotations
8
9 from typing import Union
10
11 from alembic import op
12
13 revision: str = "0011"
14 down_revision: Union[str, None] = "0010"
15 branch_labels = None
16 depends_on = None
17
18
19 def upgrade() -> None:
20 op.create_index(
21 "ix_intel_coupling_repo_co",
22 "musehub_intel_coupling",
23 ["repo_id", "co_changes"],
24 )
25 op.create_index(
26 "ix_intel_coupling_repo_file_a",
27 "musehub_intel_coupling",
28 ["repo_id", "file_a"],
29 )
30
31
32 def downgrade() -> None:
33 op.drop_index("ix_intel_coupling_repo_file_a", table_name="musehub_intel_coupling")
34 op.drop_index("ix_intel_coupling_repo_co", table_name="musehub_intel_coupling")
File History 3 commits
sha256:8e05daa29ba6702b4a2380a16d690ba31cc099d69c5c859bc6e6f16a0e945f99 Merge 'fix/deploy-memory-limits-and-log-group' into 'dev' —… Human 5 days ago
sha256:3fadb0439bba9451b89229676971c0d4a40900dec7810e9d5f8791b8d950d505 fix: install.sh version from latest published tarball, not … Sonnet 4.6 minor 96 days ago
sha256:763eb2cb8675073b84c19345b27586d2ed939a9aee97c5479b69f502f1a70eff fix(tests): update test suite to match current implementation Sonnet 4.6 patch 118 days ago