Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-63578

Convert a unique index to a non-unique index via the collMod command

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Execution Team 2022-03-07

      Support the option "unique: false", which indicates that the user would like to convert a unique index to a non-unique one. This will involve changing the index spec in the durable catalog.

      We should only allow this conversion if the unique index is in the correct internal data format (SERVER-63577), which ensures that all keys are in the new format.

      We would basically like to provide functionality opposite to what SERVER-61158 introduced.

            Assignee:
            yuhong.zhang@mongodb.com Yuhong Zhang
            Reporter:
            pavithra.vetriselvan@mongodb.com Pavithra Vetriselvan
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: