All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.liferay.depot.internal.upgrade.registry.DepotServiceUpgradeStepRegistrator Maven / Gradle / Ivy

The newest version!
/**
 * SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
 * SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
 */

package com.liferay.depot.internal.upgrade.registry;

import com.liferay.portal.kernel.upgrade.CTModelUpgradeProcess;
import com.liferay.portal.kernel.upgrade.UpgradeProcessFactory;
import com.liferay.portal.upgrade.registry.UpgradeStepRegistrator;

import org.osgi.service.component.annotations.Component;

/**
 * @author Alejandro Tardín
 */
@Component(service = UpgradeStepRegistrator.class)
public class DepotServiceUpgradeStepRegistrator
	implements UpgradeStepRegistrator {

	@Override
	public void register(Registry registry) {
		registry.register(
			"1.0.0", "1.1.0",
			UpgradeProcessFactory.addColumns(
				"DepotEntryGroupRel", "ddmStructuresAvailable BOOLEAN"));

		registry.register(
			"1.1.0", "1.2.0",
			new com.liferay.depot.internal.upgrade.v1_2_0.
				DepotEntryGroupRelUpgradeProcess());

		registry.register(
			"1.2.0", "2.0.0",
			UpgradeProcessFactory.addColumns(
				"DepotEntryGroupRel", "userId LONG",
				"userName VARCHAR(75) null", "lastPublishDate DATE null"));

		registry.register(
			"2.0.0", "2.1.0",
			new CTModelUpgradeProcess(
				"DepotAppCustomization", "DepotEntry", "DepotEntryGroupRel"));
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy