Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Table Classes missing for Creating Upgrade Processes for Modules 7.2 /
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.
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.
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/
Buildfile: build.xml does not exist!
Build failedThe 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.
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.
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.