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
24 lines
424 B
Python
24 lines
424 B
Python
"""Add follow_mode column to follows table
|
|
|
|
Revision ID: 0013
|
|
Revises: 0012
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
revision = "0013"
|
|
down_revision = "0012"
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
op.add_column(
|
|
"follows",
|
|
sa.Column("follow_mode", sa.String(20), nullable=False, server_default="neutral"),
|
|
)
|
|
|
|
|
|
def downgrade():
|
|
op.drop_column("follows", "follow_mode")
|