Foros de discusión

Re:Not updating table in Database

venka reddy, modificado hace 11 años.

Re:Not updating table in Database

Regular Member Mensajes: 231 Fecha de incorporación: 23/03/11 Mensajes recientes
Hi ,

I am developing plugin, i have created a table "Book" with certain columns(like Id,title). i have build the service. XML and successfully deployed.

These table is created in DATABASE also.

Due to some new requirements i need to add column "Type" in table .Again i have build the service. XML and successfully deployed, but it is not updating the table in DATABASE.

Is anything i am going wrong??
thumbnail
Hitesh Methani, modificado hace 11 años.

RE: Re:Not updating table in Database

Regular Member Mensajes: 171 Fecha de incorporación: 24/06/10 Mensajes recientes
Hi Venka,

Try clearing server cache, check in tables.sql if that column is add there, and in deployment logs, check if build-number exception is not coming.

Thanks and Regards,
Hitesh Methani
venka reddy, modificado hace 11 años.

RE: Re:Not updating table in Database

Regular Member Mensajes: 231 Fecha de incorporación: 23/03/11 Mensajes recientes
Hi Hitesh ,

Thanks for your reply

I have checked "tables.sql" it is updated with the new column, also it is not generating build-number exception.

Still it is not updated in Database
thumbnail
Hitoshi Ozawa, modificado hace 11 años.

RE: Re:Not updating table in Database

Liferay Legend Mensajes: 7942 Fecha de incorporación: 24/03/10 Mensajes recientes
Liferay doesn't update table structure once it's created. You'll have to drop the table and let liferay recreate it or do a manual update on the table using sql command yourself.
venka reddy, modificado hace 11 años.

RE: Re:Not updating table in Database

Regular Member Mensajes: 231 Fecha de incorporación: 23/03/11 Mensajes recientes
Hi Hitoshi Ozawa ,

I got it

When i restart the server , table is updated in DB