<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Database update on new service builder version</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=114297787" />
  <subtitle>Database update on new service builder version</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=114297787</id>
  <updated>2026-04-04T00:59:45Z</updated>
  <dc:date>2026-04-04T00:59:45Z</dc:date>
  <entry>
    <title>RE: Database update on new service builder version</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114510237" />
    <author>
      <name>Alberto Chaparro</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114510237</id>
    <updated>2019-07-30T16:37:19Z</updated>
    <published>2019-07-30T16:37:19Z</published>
    <summary type="html">Glad to hear that!</summary>
    <dc:creator>Alberto Chaparro</dc:creator>
    <dc:date>2019-07-30T16:37:19Z</dc:date>
  </entry>
  <entry>
    <title>RE: Database update on new service builder version</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114502615" />
    <author>
      <name>Nils Wilmet</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114502615</id>
    <updated>2019-07-30T08:55:41Z</updated>
    <published>2019-07-30T08:55:41Z</published>
    <summary type="html">Hi Alberto,&lt;br /&gt;&lt;br /&gt;Thanks for your help. We managed to build some SQL script to backup data before deleting tables, recreate them and insert data again.&lt;br /&gt;&lt;br /&gt;Thanks again for all your useful informations !</summary>
    <dc:creator>Nils Wilmet</dc:creator>
    <dc:date>2019-07-30T08:55:41Z</dc:date>
  </entry>
  <entry>
    <title>RE: Database update on new service builder version</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114345803" />
    <author>
      <name>Alberto Chaparro</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114345803</id>
    <updated>2019-07-17T16:07:35Z</updated>
    <published>2019-07-17T16:07:35Z</published>
    <summary type="html">Hi Nils,There are two ways to apply new changes to your current schema:&lt;br /&gt;- Following the official procedure that Olaf has explained. We follow that approach in Liferay and it&amp;#39;s not a big deal and we also have continuous integration, I don&amp;#39;t know why a new process that executes the changes can be a problem for that.&lt;br /&gt;- Make the SQL changes by yourself in some other way if you don&amp;#39;t care about tracking every schema change. We support 6 different database vendors so any schema change needs to be tracked with a specific schema version but maybe in your case, it&amp;#39;s easier and you don&amp;#39;t need it.Apart from this, please take into account the following link if you upgraded from WAR to Osgi module a service builder plugin:&lt;a href="https://portal.liferay.dev/docs/7-1/tutorials/-/knowledge_base/t/upgrade-processes-for-former-service-builder-plugins"&gt;https://portal.liferay.dev/docs/7-1/tutorials/-/knowledge_base/t/upgrade-processes-for-former-service-builder-plugins&lt;/a&gt;</summary>
    <dc:creator>Alberto Chaparro</dc:creator>
    <dc:date>2019-07-17T16:07:35Z</dc:date>
  </entry>
  <entry>
    <title>RE: Database update on new service builder version</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114343870" />
    <author>
      <name>Nils Wilmet</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114343870</id>
    <updated>2019-07-17T15:42:00Z</updated>
    <published>2019-07-17T15:42:00Z</published>
    <summary type="html">Hi Olaf,&lt;br /&gt;&lt;br /&gt;Thanks for the reply. I did read the &amp;#34;Creating Data Upgrade Processes for Modules&amp;#34; tutorial.And from what I understood, we need to make some sort of SQL statements at each schema update ? It&amp;#39;s too bad because we lose the automatic process of deploying a new version, and for the CI it would force the developer to write down each new modification before integration...If there is any other way to do that, i&amp;#39;ll take it &lt;img alt="emoticon" src="@theme_images_path@/emoticons/happy.gif" &gt;&lt;br /&gt;Thanks a lot !</summary>
    <dc:creator>Nils Wilmet</dc:creator>
    <dc:date>2019-07-17T15:42:00Z</dc:date>
  </entry>
  <entry>
    <title>RE: Database update on new service builder version</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114298547" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114298547</id>
    <updated>2019-07-15T14:10:18Z</updated>
    <published>2019-07-15T14:10:18Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;Nils Wilmet:&lt;/div&gt;&lt;blockquote&gt;&lt;br /&gt;Is there a way to update database automatically during deployment without crushing existing tables and data ?&lt;br /&gt;&lt;/blockquote&gt;Check &lt;a href="https://issues.liferay.com/browse/LPS-67688"&gt;LPS-67688&lt;/a&gt; for a discussion of the background, and instructions on how to write the appropriate upgrade process (or use the developer-workaround) - find some updated working links to documentation in the last comment to the issue, and look for your version&amp;#39;s documentation.</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2019-07-15T14:10:18Z</dc:date>
  </entry>
  <entry>
    <title>Database update on new service builder version</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114297786" />
    <author>
      <name>Nils Wilmet</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114297786</id>
    <updated>2019-07-15T12:41:55Z</updated>
    <published>2019-07-15T12:41:55Z</published>
    <summary type="html">Hi everyone,&lt;br /&gt;We are making a service builder for all of our REST web services. We wanted to apply continuous integration. It works well except for the deploy : if there is an update or add of an entity in the service.xml file, there is an error of &amp;#34;Already existing relationship&amp;#34; on our tables, which does not happen in development. This error completely stops the deployment process.&lt;br /&gt;&lt;br /&gt;Is there a way to update database automatically during deployment without crushing existing tables and data ?</summary>
    <dc:creator>Nils Wilmet</dc:creator>
    <dc:date>2019-07-15T12:41:55Z</dc:date>
  </entry>
</feed>
