"""added sharepoint_drive_item_id as an optional field to document table

Revision ID: 663c66268631
Revises: 796b720ea35f
Create Date: 2025-10-16 16:11:31.728752

"""
from typing import Sequence, Union

from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision: str = '663c66268631'
down_revision: Union[str, Sequence[str], None] = '796b720ea35f'
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None


def upgrade() -> None:
    """Upgrade schema."""
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('document', sa.Column('sharepoint_drive_item_id', sa.String(length=1024), nullable=True))
    # ### end Alembic commands ###


def downgrade() -> None:
    """Downgrade schema."""
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column('document', 'sharepoint_drive_item_id')
    # ### end Alembic commands ###
