Self-hosted US Congress monitoring platform with AI policy briefs, bill/member/topic follows, ntfy + RSS + email notifications, alignment scoring, collections, and draft-letter generator. Authored by: Jack Levy
27 lines
675 B
Python
27 lines
675 B
Python
"""widen member state and district columns
|
|
|
|
Revision ID: 0003
|
|
Revises: 0002
|
|
Create Date: 2026-03-01 00:00:00.000000
|
|
|
|
"""
|
|
from typing import Sequence, Union
|
|
|
|
import sqlalchemy as sa
|
|
from alembic import op
|
|
|
|
revision: str = "0003"
|
|
down_revision: Union[str, None] = "0002"
|
|
branch_labels: Union[str, Sequence[str], None] = None
|
|
depends_on: Union[str, Sequence[str], None] = None
|
|
|
|
|
|
def upgrade() -> None:
|
|
op.alter_column("members", "state", type_=sa.String(50))
|
|
op.alter_column("members", "district", type_=sa.String(50))
|
|
|
|
|
|
def downgrade() -> None:
|
|
op.alter_column("members", "district", type_=sa.String(10))
|
|
op.alter_column("members", "state", type_=sa.String(5))
|