"""rename project import fields

Revision ID: 3441ebd41574
Revises: ee7bdeab97e7
Create Date: 2026-03-12 13:28:13.600482

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '3441ebd41574'
down_revision = 'ee7bdeab97e7'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('cmf_project_import', sa.Column('field_mapping', sa.TEXT(), nullable=True))
    op.add_column('cmf_project_import', sa.Column('value_mapping', sa.TEXT(), nullable=True))
    op.add_column('cmf_project_import', sa.Column('skip_on_error', sa.Boolean(), nullable=False, server_default='false'))
    op.drop_column('cmf_project_import', 'json_value_mapping')
    op.drop_column('cmf_project_import', 'json_mapping')
    op.drop_column('cmf_project_import', 'on_error')
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('cmf_project_import', sa.Column('on_error', sa.BOOLEAN(), autoincrement=False, nullable=False))
    op.add_column('cmf_project_import', sa.Column('json_mapping', sa.TEXT(), autoincrement=False, nullable=True))
    op.add_column('cmf_project_import', sa.Column('json_value_mapping', sa.TEXT(), autoincrement=False, nullable=True))
    op.drop_column('cmf_project_import', 'skip_on_error')
    op.drop_column('cmf_project_import', 'value_mapping')
    op.drop_column('cmf_project_import', 'field_mapping')
    # ### end Alembic commands ###
