Message Boards

Table Classes missing for Creating Upgrade Processes for Modules 7.2 / 7.3

Martin Gnodtke, modified 3 Years ago.

Table Classes missing for Creating Upgrade Processes for Modules 7.2 / 7.3

New Member Post: 1 Join Date: 7/29/20 Recent Posts
Hi Liferay Community,
i am trying to write some Upgrade Steps for my ServiceBuilder. I am following this tutorial 
https://help.liferay.com/hc/en-us/articles/360031165751-Creating-Upgrade-Processes-for-Modules

I am wondering where the JournalArticleTable.class is coming from. Its not mentioned in the documentation. 
In my research i found this Issue https://issues.liferay.com/browse/LPS-91738 which shows an command to create this Table Class.
  • ant build-upgrade-table -Dupgrade.table.dir=src/com/liferay/portal/upgrade/v7_1_x/util/
When i try using this command i get the following error:
Buildfile: build.xml does not exist!
Build failed

The Upgrade is working when i create the XXXTable.class myself, but i think thats not a solution for me.
When i use the EntityModelImpl.class instead of the EntityTable.class its failing on the point that the TABLE_SQL_ADD_INDEXES are missing, because the Indexes dont exist in the EntityModelImpl
thumbnail
Alberto Chaparro, modified 3 Years ago.

RE: Table Classes missing for Creating Upgrade Processes for Modules 7.2 /

Liferay Master Posts: 549 Join Date: 4/25/11 Recent Posts
Hi Martin,
Can you provide more details about the kind of upgrade you want to execute? You mentioned JournalArticle, do you want to modify that table or your custom table? *Table.class are used when we need to add a new column or modify something in the schema, is that your case?

​​​​​​​Looking forward to hearing from you.