Because I found nothing working in this domain, I had to learn about TDM scripting. And finally got 2 working scripts which may be usefull for others.
So… here is my little contribution.
Both scripts sets captions and names. Captions are build from object captions. Names - from object names. You may configure max length of name and decide to convert to lowercase or not.
name formats
ix_entity_field1_field2_etc - for regular index
ux_entity_field1_field2_etc - for unique index
fk_parent_child
or optionaly
fk_parent_child_childname1_childname2_etc
Written and tested for TDM 3.6.6.7
RegenerateFKNames.js (4.05 KB)
RegenerateIndicesNames.js (4.54 KB)