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: auto building new custom table in database
I am trying to make liferay create my new custom table.
New table was added to service.xml and successfully built by serviceBuilder.
ServiceBuilder generated classes and added sql code into "portal-ext/sql/portal-tables.sql"
But, when I start liferay portal first time, it creates 139 tables into database and "skips" my new table.
Can anyone show me the procedure of making portal automatically add custom table into database during first startup?
New table was added to service.xml and successfully built by serviceBuilder.
ServiceBuilder generated classes and added sql code into "portal-ext/sql/portal-tables.sql"
But, when I start liferay portal first time, it creates 139 tables into database and "skips" my new table.
Can anyone show me the procedure of making portal automatically add custom table into database during first startup?
You could refer http://www.liferay.com/community/wiki/-/wiki/Main/Extend+Liferay+Tables to see if that would be helpful.