Skip to content

Instantly share code, notes, and snippets.

@rotty3000
Created December 13, 2011 14:53
Show Gist options
  • Save rotty3000/1472402 to your computer and use it in GitHub Desktop.
Save rotty3000/1472402 to your computer and use it in GitHub Desktop.
Hi Ray,
During the migration to 6.1 we make sure to move all the files from the hook used by the portal to the DLHook. Then, in 6.1 we force the user to use DLHook (we have hardcoded that and we don't ready the portal.property anymore)
In order to trigger the migration of data the user must set this property before upgrading (you can also run the migration manually to DLHook before upgrading from the Control Panel):
#
# In versions prior to 6.1, the Image Gallery portlet supported persisting
# images via com.liferay.portal.image.DatabaseHook,
# com.liferay.portal.image.DLHook, or
# com.liferay.portal.image.FileSystemHook. Since 6.1, only DLHook is
# supported.
#
# Set this property to the hook implementation to trigger automatic data
# migration during an upgrade.
#
#image.hook.impl=com.liferay.portal.image.DatabaseHook
#image.hook.impl=com.liferay.portal.image.DLHook
#image.hook.impl=com.liferay.portal.image.FileSystemHook
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment