legacy-knowledge-base
公開されました Jun. 30, 2025

ServiceBuilder の更新がデータベースに反映されません

written-by

Daniel Martinez Cisneros

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

問題

サービス ビルダーの変更は、service.xml に列を追加または削除した後、データベースに更新を適用しません。

環境

  • Quarterly Releases

解決

Liferayでは、schema.module.build.auto.upgradeプロパティがデフォルトでfalseに設定されています。このプロパティをtrueに設定しない限り、自動アップグレードは実行されず、データベースへの変更は適用されません。

Liferayのドキュメントに記載されているように、Liferay DXPは本番環境でのビルド自動アップグレードをサポートしていません。service.xmlの変更をアップグレードする手順は以下のとおりです。

  1. このリンクの説明に従って、アップグレード ステップを作成します。
  2. テーブルの変更を定義するアップグレードステップを作成した後、buildService タスクを実行し、-service および -api モジュールをデプロイします。
  3. デプロイしたら、Gogo Shell に移動してアップグレードを実行します。
upgrade:execute [module_name]
//Verify execution:
upgrade:list [module_name]

これらの手順を適用すると、Service Builder が更新され、列が追加または削除されます(インデックスの作成も可能です)。変更は Release_ テーブルと ServiceComponent テーブルにも反映されます。

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base