Since we have 1700 indexes to mark as unique, not as primary, we are trying to automatically correct the definition
This is what we tried.
1. We packaged the definition to a .pkg File.
2. We extracted the Indexes.xml file alone to an output folder
3. We deleted the Indexes.xml from the package
4. In the extracted indexes.xml, we manually corrected the value of idx_type element to 1 from 0. (We inferred that 0-Primary, 1-Unique, 0-Index)
5. We added the edited indexes.xml into the package
6. Now when we try to extract the same file again or import a new database defintion from this deployment package, We get an error. (Key already added to a dictionary..blah blah blah..)
Could you please confirm is this a plausible way of accomplishing what we want? Are we close? What are we missing?
Any Help is deeply appreciated!