"""add schema cache to datasets

Revision ID: g9e4f8b2c3d5
Revises: 67c716bfaa02
Create Date: 2025-11-12 00:00:00.000000

"""

from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = 'g9e4f8b2c3d5'
down_revision = '67c716bfaa02'
branch_labels = None
depends_on = None


def upgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('datasets', sa.Column('schema_cache', sa.Text(), nullable=True))
    op.add_column('datasets', sa.Column('schema_updated_at', sa.TIMESTAMP(), nullable=True))
    # ### end Alembic commands ###


def downgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column('datasets', 'schema_updated_at')
    op.drop_column('datasets', 'schema_cache')
    # ### end Alembic commands ###
