def METHOD_NAME():
    # ### commands auto generated by Alembic - please adjust! ###
    with op.batch_alter_table("metadata_descriptor", schema=None) as batch_op:
        batch_op.add_column(
            sa.Column(
                "data_type",
                sqlalchemy_utils.types.choice.ChoiceType(
                    METADATA_DESCRIPTOR_TYPES
                ),
                nullable=True,
            )
        )
    # ### end Alembic commands ###
    bind = op.get_bind()
    session = orm.Session(bind=bind)
    metadata_descriptors = session.query(MetadataDescriptor).all()
    for metadata_descriptor in metadata_descriptors:
        if len(metadata_descriptor.choices) > 1 and all(
            isinstance(s, str) for s in metadata_descriptor.choices
        ):
            if all(
                s.startswith("[ ]") or s.startswith("[x]")
                for s in metadata_descriptor.choices
            ):
                metadata_descriptor.data_type = "checklist"
            else:
                metadata_descriptor.data_type = "list"
        else:
            metadata_descriptor.data_type = "string"
    session.commit()