Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
Master
Description
When upgrading Liferay DXP connected DB2, there's often the need to reorganize tables before being able to alter them. Liferay takes into account alter table and alter column type statements to consider the need to reorganize affected tables, but this is seemingly not enough. Many statements performed during upgrade may imply the need for table reorganization, but as not all SQL statements go through DB2DB class, that need may be unsatisfied until a SQL statement goes through DB2DB again, which may be too late.
The fix proposed here uses a more aggressive strategy, verifying the need to reorganize the tables before delete from statements as well.