Affects Version/s: 7.1.X, 7.2.X, Master
When upgrading from 7.0 to 7.2, having duplicate Page Templates results in the com.liferay.layout.page.template.service module upgrade failing.
Steps to Reproduce:
1. Start up a clean 7.0 SP7 bundle
2. Go to Control Panel > Sites > Page Templates > Add a new Page Template 'test'
3. Add another Page Template with the same name, 'test' (there should now be two page templates named 'test')
4. Shut down
5. Upgrade to 7.2 SP1
Expected Behavior: Upgrade completes successfully
Actual Behavior: Upgrade fails at module com.liferay.layout.page.template.service
Reproduced in 7.0.x to master upgrade
7.0.x - ebaa0af5a06940fe75f517d2c2efe179cf9f5f42
master - aa209c1576c97883be16b73b1e60a0be5ed6dd3c
In the customer's use case, they may have imported a LAR file of Page Templates using the Copy as New option, and this also results in duplicates of the default 'Content Display Page', 'Blogs', 'Wiki' page templates, leading to the same upgrade failure.