sergiogonzalez/liferay-portal — pull request #229 by KocsisDaniel (2012-04-26 09:17:28+00:00)
Title: LPS-25224 Add ability to control whether the indexes should be dropped during startup or not

Hi Sergio, this PR is about to drop unused database indexes during portal startup. This is necessary for fix packs since it is possible with a fix pack we remove finders and in this case we need to take care about to remove unnecessary db indexes as well. We introduced a new parameter to control whether you want to drop indexes or not from the next startup. We use the already existing method to decide whether the index needs to be dropped or not, that relies on the indexes.sql and indexes.properties and the indexes exist on the db. Please note that currently the 2 mentioned files are not consistent, so every startup we will drop and re-create 3 indexes. If you were re-run the service builder for the portal it won't do it anymore. I changed the logging level to make it consistent with the logging in addIndexes.