"""import_error

Revision ID: d190febe41a3
Revises: 8409ee1d8f09
Create Date: 2024-01-10 10:35:18.167613

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = 'd190febe41a3'
down_revision = '8409ee1d8f09'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.create_table('cmf_import_error',
    sa.Column('id', sa.String(length=64), nullable=False),
    sa.Column('ext_href', sa.String(length=4096), nullable=True),
    sa.Column('code', sa.String(length=32), nullable=True),
    sa.Column('traceback', sa.String(), nullable=True),
    sa.Column('title', sa.String(), nullable=True),
    sa.Column('dump_path', sa.String(length=4096), nullable=True),
    sa.Column('obj_type', sa.String(length=256), nullable=True),
    sa.Column('error_type', sa.String(length=32), nullable=True),
    sa.Column('text', sa.String(), nullable=True),
    sa.Column('cmf_import_id', sa.String(length=64), nullable=True),
    sa.ForeignKeyConstraint(['cmf_import_id'], ['cmf_import.id'], ),
    sa.PrimaryKeyConstraint('id')
    )
    op.create_index(op.f('ix_cmf_import_error_cmf_import_id'), 'cmf_import_error', ['cmf_import_id'], unique=False)
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_index(op.f('ix_cmf_import_error_cmf_import_id'), table_name='cmf_import_error')
    op.drop_table('cmf_import_error')
    # ### end Alembic commands ###
