Issue
- During the upgrade process from Liferay DXP 7.1 to a more recent version, the following warning message appears in the logs when using SQL Server:
WARN [main][BaseSQLServerDatetimeUpgradeProcess:99] Column publishDate in table Layout already is datetime2(6)
Environment
- Liferay DXP 7.1
- Upgrading to Liferay DXP 2024.Q2
- SQL Server Database
Resolution
- This warning message can be safely ignored.
- The
publishDate
column was added to theLayout
table in a upgrade step from DXP 7.1 to DXP 7.2 and configured to use thedatetime2(6)
data type for SQL Server databases. - This upgrade step between DXP 7.1 and 7.2 also checks all existing date time type columns and attempts to update them to the correct
datetime2(6)
type if necessary (see LPS-84513). - Since the column already exists with the correct data type, the upgrade process logs a warning indicating that no update is needed. This warning does not impact the upgrade process or the functionality of Liferay DXP.