"""Actualiza a la versión última con extrACTIONS

Revision ID: 19ff97fee17e
Revises: 0e01fd03f751
Create Date: 2025-11-17 19:56:45.739789

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '19ff97fee17e'
down_revision = '0e01fd03f751'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    with op.batch_alter_table('clazz', schema=None) as batch_op:
        batch_op.add_column(sa.Column('extraActions', sa.Text(), nullable=True))

    with op.batch_alter_table('field', schema=None) as batch_op:
        batch_op.add_column(sa.Column('allowHtml', sa.Boolean(), nullable=True))

    with op.batch_alter_table('object', schema=None) as batch_op:
        batch_op.add_column(sa.Column('creationDateText', sa.String(length=255), nullable=True))
        batch_op.add_column(sa.Column('additionalAccessionNumber', sa.String(length=255), nullable=True))

    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    with op.batch_alter_table('object', schema=None) as batch_op:
        batch_op.drop_column('additionalAccessionNumber')
        batch_op.drop_column('creationDateText')

    with op.batch_alter_table('field', schema=None) as batch_op:
        batch_op.drop_column('allowHtml')

    with op.batch_alter_table('clazz', schema=None) as batch_op:
        batch_op.drop_column('extraActions')

    # ### end Alembic commands ###
