"""Add member_model_enabled feature flag

Revision ID: e469a3ec2161
Revises: 14338d209978
Create Date: 2025-11-18 14:48:21.629257

"""

import sqlalchemy as sa
from alembic import op

# Polar Custom Imports

# revision identifiers, used by Alembic.
revision = "e469a3ec2161"
down_revision = "14338d209978"
branch_labels: tuple[str] | None = None
depends_on: tuple[str] | None = None


def upgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.execute(
        """
        UPDATE organizations
        SET feature_settings = jsonb_set(feature_settings, '{member_model_enabled}', 'false'::jsonb)
        """
    )
    # ### end Alembic commands ###


def downgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    pass
    # ### end Alembic commands ###
