NOTE: This bug report is for Confluence Cloud. Using Confluence Server? See the corresponding bug report.
The pending fix for CONF-21909 includes an upgraded Hibernate which logs warnings if it's about to try and create an index which may be a duplicate. We should extract that improvement into a separate merge to master in case CONF-21909 is held up.
Incorporate check for pre-existing indexes