<?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>service builder not creating tables</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=118983990" />
  <subtitle>service builder not creating tables</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=118983990</id>
  <updated>2026-04-07T16:32:23Z</updated>
  <dc:date>2026-04-07T16:32:23Z</dc:date>
  <entry>
    <title>RE: service builder not creating tables</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118991227" />
    <author>
      <name>marvin ros</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118991227</id>
    <updated>2020-04-21T05:34:24Z</updated>
    <published>2020-04-21T05:34:24Z</published>
    <summary type="html">Hello Alberto,&lt;br /&gt;&lt;br /&gt;I need this UpgradeStepRegistrator class because in the past there was a feature request for my module so I had to change the db schema (added some columns and some other things) to provide the feature without data loss on our production environment db table.&lt;br /&gt;&lt;br /&gt;I am now trying to deploy this module on a fresh liferay Server 7.1.3 with comulative patch applied. On this server my module was never installed.&lt;br /&gt;So when I try to deply my module as it is no DB tables will be created. &lt;br /&gt;If I remove the UpgradeStepRegistrator class the module creates its tables successfully. &lt;br /&gt;&lt;br /&gt;My main Problem is that this module wont create its db tables if there is its UpgradeStepRegistrator class. I dont know why this is happening.&lt;br /&gt;Can you tell me what is the trigger for a module to create its db tables on the very first deploy? &lt;br /&gt;&lt;br /&gt;I also think I did not have this problem on Liferay 7.1.3 without the patch applied. Can anybody confirm this?&lt;br /&gt;&lt;br /&gt;thanks in advance</summary>
    <dc:creator>marvin ros</dc:creator>
    <dc:date>2020-04-21T05:34:24Z</dc:date>
  </entry>
  <entry>
    <title>RE: service builder not creating tables</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118989823" />
    <author>
      <name>Alberto Chaparro</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118989823</id>
    <updated>2020-04-20T22:18:42Z</updated>
    <published>2020-04-20T22:18:42Z</published>
    <summary type="html">Hi Marvin,&lt;br /&gt;Can you provide more details why you need an UpgradeStepRegistrator in this case? That class is useful when you need to change the data definition for a module, are you changing the data definition of a service builder module? Please, provide all details you have to figure out what&amp;#39;s happening.&lt;br /&gt;Thanks.</summary>
    <dc:creator>Alberto Chaparro</dc:creator>
    <dc:date>2020-04-20T22:18:42Z</dc:date>
  </entry>
  <entry>
    <title>service builder not creating tables</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118983989" />
    <author>
      <name>marvin ros</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118983989</id>
    <updated>2020-04-20T10:07:56Z</updated>
    <published>2020-04-20T10:07:56Z</published>
    <summary type="html">Hello everyone,&lt;br /&gt;&lt;br /&gt;I have an issue that my DB tables from a service module are not created after I deploy the api and service module for the first time on a new server.&lt;br /&gt;This specific module has an UpgradeStepRegistrator see -&amp;gt; &lt;a href="https://help.liferay.com/hc/en-us/articles/360017889772-Creating-Data-Upgrade-Processes-for-Modules-"&gt;https://help.liferay.com/hc/en-us/articles/360017889772-Creating-Data-Upgrade-Processes-for-Modules-&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The required DB tables are not created but an entry in the release_ table with the right schema version is created.&lt;br /&gt;&lt;br /&gt;If I comment out the entire UpgradeStepRegistrator class the DB tables will be created at the first deploy of the modules. &lt;br /&gt;I noticed this because I have a bunch of other modules that dont have an UpgradeStepRegistrator. In these modules the DB tables are created successfully at the first deploy.&lt;br /&gt;&lt;br /&gt;I have this problem since I upgraded to Liferay CE 7.1.3 with the comulative patch applied &lt;a href="http://(https://liferay.dev/blogs/-/blogs/security-patches-for-liferay-portal-6-2-7-0-and-7-1)"&gt;(https://liferay.dev/blogs/-/blogs/security-patches-for-liferay-portal-6-2-7-0-and-7-1)&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;best regards</summary>
    <dc:creator>marvin ros</dc:creator>
    <dc:date>2020-04-20T10:07:56Z</dc:date>
  </entry>
</feed>
