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

Table already exists upgrade error

written-by

Madeleine Clay

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

  • An upgrade is failing with a java.sql.SQLSyntaxErrorException: Table [table name] already exists error

Environment

  • Quarterly Releases
  • DXP 7.4
  • DXP 7.3
  • DXP 7.2

Resolution

NOTE: Be sure to take a backup of your database prior to making any changes. Always test the changes in a lower environment before making changes in production.

Making manual changes to the database is not recommended, and should be carefully assessed based on your own business needs and risk factors. Any such operation is performed at the sole discretion of your own team.

  • Check the schemaVersion column of the Release_ table for an entry with a value of 0.0.0.
  • In the pre-upgrade database, update the number to match the correct schemaVersion for that module your patch level (you can check the correct schemaVersion by selecting your patch level Downloads and opening the module version changelog).

Additional Information

  • Modules with the release number 0.0.0 trigger table creation. If a module has this number when an upgrade is run, Liferay will attempt to create tables and be unable to because the tables already exist.

 

 

did-this-article-resolve-your-issue

legacy-knowledge-base