"""Fix avalanche

Revision ID: 295ce155c811
Revises: 26000a6bff7d
Create Date: 2024-04-01 09:20:46.381074

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '295ce155c811'
down_revision = '26000a6bff7d'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column('avalanche_blocks', 'block_extra_data')
    op.drop_column('avalanche_fuji_blocks', 'block_extra_data')
    op.add_column('avalanche_blocks', sa.Column('block_extra_data', sa.Text(), nullable=True))
    op.add_column('avalanche_fuji_blocks', sa.Column('block_extra_data', sa.Text(), nullable=True))
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column('avalanche_blocks', 'block_extra_data')
    op.drop_column('avalanche_fuji_blocks', 'block_extra_data')
    op.add_column('avalanche_blocks', sa.Column('block_extra_data', sa.VARCHAR(length=256), nullable=True))
    op.add_column('avalanche_fuji_blocks', sa.Column('block_extra_data', sa.VARCHAR(length=256), nullable=True))
    # ### end Alembic commands ###
