"""add trial_reg, study_design, pico to global_literature

Revision ID: a4b8c2d3e5f6
Revises: f83e6b217209
Create Date: 2026-07-07 19:00:00.000000
"""
from typing import Sequence, Union
from alembic import op
import sqlalchemy as sa


revision: str = 'a4b8c2d3e5f6'
down_revision: Union[str, None] = 'f83e6b217209'
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None


def upgrade() -> None:
    op.add_column('global_literature', sa.Column('trial_reg', sa.JSON(), nullable=True))
    op.add_column('global_literature', sa.Column('study_design', sa.JSON(), nullable=True))
    op.add_column('global_literature', sa.Column('pico', sa.JSON(), nullable=True))


def downgrade() -> None:
    op.drop_column('global_literature', 'pico')
    op.drop_column('global_literature', 'study_design')
    op.drop_column('global_literature', 'trial_reg')
