import com.liferay.portal.kernel.upgrade.util.UpgradeTableFactoryUtil;
import com.liferay.portal.upgrade.v6_0_0.util.ResourceActionTable;
public class UpgradeResourceAction extends UpgradeProcess {
@Override
protected void doUpgrade() throws Exception {
<BUG>try {
runSQL("alter_column_type ResourceAction name VARCHAR(255) null");</BUG>
}
<BUG>catch (Exception e) {
UpgradeTable upgradeTable = UpgradeTableFactoryUtil.getUpgradeTable(</BUG>
ResourceActionTable.TABLE_NAME,

import com.liferay.portal.kernel.upgrade.util.UpgradeTableFactoryUtil;
import com.liferay.portal.upgrade.v6_0_0.util.ResourceActionTable;
public class UpgradeResourceAction extends UpgradeProcess {
@Override
protected void doUpgrade() throws Exception {
if (isSupportsAlterColumnType()) {
runSQL("alter_column_type ResourceAction name VARCHAR(255) null");
}
else {
UpgradeTable upgradeTable = UpgradeTableFactoryUtil.getUpgradeTable(
ResourceActionTable.TABLE_NAME,
