Foros de discusión

Liferay Upgradation 6.x to 6.x

thumbnail
Jay Trivedi, modificado hace 9 años.

Liferay Upgradation 6.x to 6.x

Regular Member Mensajes: 109 Fecha de incorporación: 24/11/12 Mensajes recientes
Hi Guys,

We always know the new version in market comes out with useful functions. And Since Community users we always wanted our application getting benefits of all those available market add-on.

Can you let me know or Let us discuss Liferay 6.1 to Liferay 6.2.

What are necessary steps?
What should be taken care of?
How to Move modified code (API) to upper version?
How to take care of Hooks in Upper version?
How to upgrade properties?

Put Your inputs here lets make this thread Useful for community.

I had few suggestions but not the exact Lane of direction.
http://www.liferay.com/community/wiki/-/wiki/Main/Upgrade+Instructions+from+6.1+to+6.2

Lets add pratical scenarios here and discuss it.
Thanks,
Jay Trivedi
thumbnail
Jitendra Rajput, modificado hace 9 años.

RE: Liferay Upgradation 6.x to 6.x

Liferay Master Mensajes: 875 Fecha de incorporación: 7/01/11 Mensajes recientes
What are necessary steps?
- You need to start with Database upgrade first . Once you are done with database upgrade you can you need to upgrade Document Library or Image gallery (If there is any change in hook).
- Upgrade your code plugins - Ext , Portlet , Theme and Layout.

What should be taken care of?

- For Database upgrade make sure there are no obvious issue with your current database. I mean to say if you are upgrading from LR 6.1 to LR 6.2 but LR 6.1 already has some issue then you need to first fix issue in your old database and then start upgrade.
-Backed up your database.
-Once database upgrade is failed you can use the same database again . You need to again restore old database then perform upgrade on restored database.

How to Move modified code (API) to upper version?
- API Changes can be either in Ext , Hook and Portlet . You can not directly copy your old plugin into latest version . There is different strategy to upgrade code plugins.

To upgrade plugin portlet you can create a blank portlet in new Liferay version and you can copy content of old plugin one by one. (For configuration files there might be change with DTD so don't copy entire file instead copy its content)
You can check my blog entry Plugin Portlet Migration Tips.

- For Ext also you can not use old files into latest version. There might be possibility of change in source code . Let say if you have modified LoginAction in old version don't use the same file in latest version copy LoginACtion from new versions portal source and identify your changes.
Avoid new portlet and service creation inside ext. That is not recommended if you old version had services and portlet in ext then move it to either portlet or hook.

How to take care of Hooks in Upper version?

For Hook you need to repeat above exercise. Copy new hooked JSP or class from latest version's portal source and identify your changes.

How to upgrade properties?
It might be possible that some of the properties might have changed from one version to another. i.e in Liferay 5.x for document library hook property is dl.impl.hook but in LR 6.x document library hook property is changed to dl.store.impl. You need to identify changes of property in new version . Use new property in latest version.

You can also refer to below links for more details about database upgrade.
http://itsliferay.blogspot.in/2012/06/upgrade-database-from-liferay-52-sp-3.html

http://itsliferay.blogspot.in/2012/06/upgrade-database-from-liferay-60-to.html
Hope this will help you .

Thank you
Jitendra Rajput
http://itsliferay.blogspot.in/
Ngocha Haobam, modificado hace 8 años.

RE: Liferay Upgradation 6.x to 6.x

Junior Member Mensajes: 87 Fecha de incorporación: 30/01/15 Mensajes recientes
if database upgrade is failed, can I use same database again.
thumbnail
Olaf Kock, modificado hace 8 años.

RE: Liferay Upgradation 6.x to 6.x

Liferay Legend Mensajes: 6403 Fecha de incorporación: 23/09/08 Mensajes recientes
If database upgrade fails: Restore a backup. Find & Fix the issue, then retry. In fact, my recommendation is to restore a backup to a new environment first, then attempt to upgrade this restored version. This way you're testing the completeness and usefulness of your backup as well.

If you have a new issue or question, don't resurrect 1y old vaguely related threads, rather start a new one.