"""Adding metadata to DocumentVersion

Revision ID: 711a09a77680
Revises: 43eac8a7a00b
Create Date: 2024-09-06 14:37:39.647455

"""
from alembic import op
import sqlalchemy as sa
import pgvector
from sqlalchemy.dialects import postgresql

# revision identifiers, used by Alembic.
revision = '711a09a77680'
down_revision = '43eac8a7a00b'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('document_version', sa.Column('user_metadata', postgresql.JSONB(astext_type=sa.Text()), nullable=True))
    op.add_column('document_version', sa.Column('system_metadata', postgresql.JSONB(astext_type=sa.Text()), nullable=True))

    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column('document_version', 'system_metadata')
    op.drop_column('document_version', 'user_metadata')

    # ### end Alembic commands ###
