How to get the list of indices in a class in order to manually delete some or all of them given some rules
Hi, the class %Library.Storage has several methods such as %BuildIndices(pIndexList As %RawString = "" ...), %ValidateIndices(idxList As %List = ""...), ... which take as a parameter (amongst others) a list of indices (in the example, the signature of the list is not the same but I guess it does not matter).
My question is: can get this list in code ? I know that is it possible to get the list of properties of a class in code, but can I have the same for indices ?
For those wondering what I'm trying to achieve:
I want to be able to update the schema of my database between two version of a product. For some reasons, we used DocDb. As I haven't been able to find something like Liquibase, the best I could come up with was to write a method that gets all my existing tables, remove its properties and indices and then rebuild properties and indices according to the new schema.