Legacy Knowledge Base
公開されました Jul. 2, 2025

警告「テーブルを再作成して X テーブルをアップグレードしようとしています」

Written By

Cristina Rodriguez

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

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

問題

  • ポータルの新しいバージョンへのアップグレード中に、「何らかの理由でテーブルを再作成してテーブルをアップグレードしようとしています」などの警告がログに記録される場合があります。 それらは混乱を引き起こす可能性があり、後で影響を与えるか、無視できるかどうか疑問に思う.
  • 以下に例を示します。
2021-03-04 08:40:09.561 WARN  [main][UpgradeProcess:400]  Attempting to upgrade table DDLRecord by recreating the table due to:  Key column 'classPK' doesn't exist in table

Environment

  • あるバージョンから新しいバージョンへのアップグレード。

解決策

  • Liferay には、データベース テーブルの変更が必要で、何らかの理由で実行できない場合に実行されるフォールバック メカニズムがあります。 このメカニズム:
    1. テーブル情報をディスクにダンプします。
    2. 新しく定義された構造でテーブルを再作成します。
    3. 2 の情報をダンプします。 データベーステーブルに。
  • 成功すると、次のメッセージがログに記録されます。
2021-03-04 08:40:09.702 WARN [main][UpgradeProcess:419] Successfully recreated and upgraded table DDLRecord

したがって、警告は安全に無視できます。

Did this article resolve your issue ?

Legacy Knowledge Base