gabriel / musehub public
20260423_1448_4e68b95b48f3_widen_fingerprint_to_71.py python
40 lines 1.1 KB
Raw
sha256:9590cee1e0ccd6c76528f005b95d634d80f5019f0dcb7c371e149adc31d1fb65 refactor: enforce gRPC framing on all MWP wire traffic Sonnet 4.6 minor ⚠ breaking 154 days ago
1 """widen fingerprint columns from 64 to 71 chars (sha256: prefix = 7 extra bytes)
2
3 Revision ID: 4e68b95b48f3
4 Revises: ce3181fcf6d6
5 Create Date: 2026-04-23 14:48:32.890055+00:00
6
7 """
8 from __future__ import annotations
9
10 from typing import Sequence, Union
11
12 import sqlalchemy as sa
13 from alembic import op
14
15 revision: str = "4e68b95b48f3"
16 down_revision: Union[str, None] = "ce3181fcf6d6"
17 branch_labels: Union[str, Sequence[str], None] = None
18 depends_on: Union[str, Sequence[str], None] = None
19
20
21 def upgrade() -> None:
22 op.alter_column(
23 "musehub_auth_challenges", "fingerprint",
24 type_=sa.String(length=71), existing_nullable=False,
25 )
26 op.alter_column(
27 "musehub_auth_keys", "fingerprint",
28 type_=sa.String(length=71), existing_nullable=False,
29 )
30
31
32 def downgrade() -> None:
33 op.alter_column(
34 "musehub_auth_challenges", "fingerprint",
35 type_=sa.String(length=64), existing_nullable=False,
36 )
37 op.alter_column(
38 "musehub_auth_keys", "fingerprint",
39 type_=sa.String(length=64), existing_nullable=False,
40 )
File History 1 commit
sha256:9590cee1e0ccd6c76528f005b95d634d80f5019f0dcb7c371e149adc31d1fb65 refactor: enforce gRPC framing on all MWP wire traffic Sonnet 4.6 minor ⚠ 154 days ago