"""
Remove user_id column from user_chat_history table

Revision ID: 0008
Revises: 0007
Create Date: 2024-12-19 14:30:00.000000

"""
from alembic import op
import sqlalchemy as sa

# revision identifiers, used by Alembic.
revision = '0008'
down_revision = '0007'
branch_labels = None
depends_on = None

def upgrade():
    # Drop the user_id column from user_chat_history table
    op.drop_column('user_chat_history', 'user_id')

def downgrade():
    # Add back the user_id column if needed to rollback
    op.add_column('user_chat_history', sa.Column('user_id', sa.Integer(), nullable=False))
