"""Corrected BusinessEventLog

Revision ID: 2cbdb23ae02e
Revises: e3c6ff8c22df
Create Date: 2024-09-25 10:17:40.154566

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '2cbdb23ae02e'
down_revision = 'e3c6ff8c22df'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    with op.batch_alter_table('business_event_log', schema=None) as batch_op:
        batch_op.alter_column('span_id',
               existing_type=sa.VARCHAR(length=50),
               nullable=True)
        batch_op.alter_column('span_name',
               existing_type=sa.VARCHAR(length=50),
               nullable=True)
        batch_op.alter_column('parent_span_id',
               existing_type=sa.VARCHAR(length=50),
               nullable=True)


    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    with op.batch_alter_table('business_event_log', schema=None) as batch_op:
        batch_op.alter_column('parent_span_id',
               existing_type=sa.VARCHAR(length=50),
               nullable=False)
        batch_op.alter_column('span_name',
               existing_type=sa.VARCHAR(length=50),
               nullable=False)
        batch_op.alter_column('span_id',
               existing_type=sa.VARCHAR(length=50),
               nullable=False)

    # ### end Alembic commands ###
