Core implementation module containing the fundamental services, utilities, and infrastructure components for the Liferay Digital Experience Platform.
—
Version-specific database migration utilities supporting upgrades between Liferay 7.x versions with comprehensive schema transformation capabilities and data migration procedures.
Common utilities for database schema upgrades and data migrations.
/**
* Base upgrade process providing common upgrade functionality
*/
public abstract class UpgradeProcess {
/**
* Executes the upgrade process
* @throws UpgradeException if upgrade fails
*/
public abstract void upgrade() throws UpgradeException;
/**
* Gets upgrade step description
* @return description of what this upgrade does
*/
public abstract String getDescription();
/**
* Checks if upgrade is applicable to current schema
* @return true if upgrade should be executed
*/
protected boolean isApplicable();
/**
* Executes SQL statements for schema changes
* @param sql SQL statements to execute
* @throws SQLException if SQL execution fails
*/
protected void runSQL(String... sql) throws SQLException;
/**
* Alters table structure
* @param tableName table to alter
* @param alterStatement SQL alter statement
* @throws SQLException if alter fails
*/
protected void alterTable(String tableName, String alterStatement) throws SQLException;
}Version-specific upgrade implementations for Liferay 7.0.0 migration procedures.
/**
* Upgrade processes for Liferay 7.0.0 migration
*/
public class UpgradeSchema_7_0_0 extends UpgradeProcess {
/**
* Upgrades database schema to Liferay 7.0.0 format
* @throws UpgradeException if schema upgrade fails
*/
@Override
public void upgrade() throws UpgradeException;
}
/**
* Data migration for Liferay 7.0.0 upgrade
*/
public class UpgradeData_7_0_0 extends UpgradeProcess {
/**
* Migrates data to Liferay 7.0.0 compatible format
* @throws UpgradeException if data migration fails
*/
@Override
public void upgrade() throws UpgradeException;
}Version-specific upgrade implementations for Liferay 7.0.5 migration procedures.
/**
* Upgrade processes for Liferay 7.0.5 migration
*/
public class UpgradeSchema_7_0_5 extends UpgradeProcess {
/**
* Upgrades database schema to Liferay 7.0.5 format
* @throws UpgradeException if schema upgrade fails
*/
@Override
public void upgrade() throws UpgradeException;
}Version-specific upgrade implementations for Liferay 7.1.x migration procedures.
/**
* Upgrade processes for Liferay 7.1.x migration
*/
public class UpgradeSchema_7_1_x extends UpgradeProcess {
/**
* Upgrades database schema to Liferay 7.1.x format
* @throws UpgradeException if schema upgrade fails
*/
@Override
public void upgrade() throws UpgradeException;
}Running Database Upgrades:
// Execute upgrade process
UpgradeProcess upgrade = new UpgradeSchema_7_0_0();
if (upgrade.isApplicable()) {
upgrade.upgrade();
}Database upgrades integrate with:
Install with Tessl CLI
npx tessl i tessl/maven-com-liferay-portal--com-liferay-portal-impl