RE: Schema Not Update

Jamie Sammons, modified 2 Years ago. New Member Posts: 2 Join Date: 11/23/22 Recent Posts

Iam using Liferay 7.4 . I add new field in service.xml . Then build service and deploy the service builder but table not update.

The New Field not cretaed . How to Solve this problem

thumbnail
Jamie Sammons, modified 2 Years ago. Liferay Legend Posts: 1555 Join Date: 9/24/09 Recent Posts

Please read this:

https://liferay.dev/blogs/-/blogs/liferay-7-3-upgrade-processes

tl;dr: For development environments you can set "upgrade.database.auto.run=true" in portal-ext.properties, but for production environments you should implement an upgrade step instead.

Jamie Sammons, modified 1 Year ago. New Member Posts: 24 Join Date: 6/13/23 Recent Posts

Hey antony, I faced the same issue and i solved this by

Deleting the existing custom table created in SQL, Deleting the entry created for your service.xml in release table and servicecomponent table in SQL.

Clean, re-build the service-builder and Deploy your service-builder.

Now, Your new fields will be created in custom table in SQL.