legacy-knowledge-base
公開されました Sep. 10, 2025

"Column publishDate in table Layout already is datetime2(6)" Warning During Upgrade

written-by

Jorge Diaz

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

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 the Layout table in a upgrade step from DXP 7.1 to DXP 7.2 and configured to use the datetime2(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.

 

did-this-article-resolve-your-issue

legacy-knowledge-base