code: def update_indexes(database):
      """Remove user from unique indices.
  
      This is required for migration to v0.1.6+
      """
      # For backward compatibility
      index_info = database.index_information("experiments")
      deprecated_indices = [
          ("name", "metadata.user"),
          ("name", "metadata.user", "version"),
          "name_1_metadata.user_1",
          "name_1_metadata.user_1_version_1",
      ]
  
      for deprecated_idx in deprecated_indices:
          if deprecated_idx in index_info:
              database.drop_index("experiments", deprecated_idx)
  
file_path: orion/src/orion/core/cli/db/upgrade.py
imports: import argparse
  import logging
  import sys
  from orion.core.io import experiment_builder
  from orion.core.io.config import ConfigurationError
  from orion.core.io.database.ephemeraldb import EphemeralCollection
  from orion.core.io.database.mongodb import MongoDB
  from orion.core.io.database.pickleddb import PickledDB
  from orion.storage.legacy import Legacy
label_desc: Use image node_id 7 for calling a global function with example usage: update_indexes(database) without return types