import com.liferay.portal.kernel.upgrade.util.UpgradeTableFactoryUtil;
import com.liferay.portal.upgrade.v5_2_3.util.CalEventTable;
public class UpgradeCalendar extends UpgradeProcess {
@Override
protected void doUpgrade() throws Exception {
<BUG>try {
runSQL("alter_column_type CalEvent remindBy INTEGER");</BUG>
}
<BUG>catch (Exception e) {
UpgradeTable upgradeTable = UpgradeTableFactoryUtil.getUpgradeTable(</BUG>
CalEventTable.TABLE_NAME, CalEventTable.TABLE_COLUMNS);

import com.liferay.portal.kernel.upgrade.util.UpgradeTableFactoryUtil;
import com.liferay.portal.upgrade.v5_2_3.util.CalEventTable;
public class UpgradeCalendar extends UpgradeProcess {
@Override
protected void doUpgrade() throws Exception {
if (isSupportsAlterColumnType()) {
runSQL("alter_column_type CalEvent remindBy INTEGER");
}
else {
UpgradeTable upgradeTable = UpgradeTableFactoryUtil.getUpgradeTable(
CalEventTable.TABLE_NAME, CalEventTable.TABLE_COLUMNS);
