Affects Version/s: 7.2.1 CE GA2, 7.3.X, Master
Component/s: Page Templates
When you run database upgrade tool from version liferay-portal-6.2-ce-ga6b to liferay liferay-ce-portal-7.2.1-ga2 this error is throw:
INFO - Completed com.liferay.layout.page.template.internal.upgrade.v1_1_0.UpgradeLayoutPrototype#upgradeLayoutPrototype in 91 ms
2021-04-09 05:59:47.812 INFO [main][UpgradeProcess:107] Failed upgrade process com.liferay.layout.page.template.internal.upgrade.v1_1_0.UpgradeLayoutPrototype in 453 ms
INFO - Failed upgrade process com.liferay.layout.page.template.internal.upgrade.v1_1_0.UpgradeLayoutPrototype in 453 ms
2021-04-09 05:59:47.818 ERROR [main][ReleaseManagerOSGiCommands:147] Failed upgrade process for module com.liferay.layout.page.template.service
It is failing because although there is a createDate and modifiedDate columns in the LayoutPrototype table, they are null (likely from the version you're on not requiring them). I updated all of the rows to give them a timestamp value and the upgrade finished.