掲示板

Migrate user custom fields from instance to instance

8年前 に avasek atok によって更新されました。

Migrate user custom fields from instance to instance

Junior Member 投稿: 41 参加年月日: 15/01/09 最新の投稿
Hi - I have created a new instance (emoticon in liferay. Into this new instance i have exported and imported a site which exists in a different instance (A) in the same liferay installation.

I have configured LDAP into the instance B and imported all users from central LDAP into this instance.

Now i have to migrate the user custom fields/preferences which are user specific of old site in instance A to new site in instance B.

Is there a pre-defined way to achieve this migration.
Please suggest
thumbnail
8年前 に Olaf Kock によって更新されました。

RE: Migrate user custom fields from instance to instance

Liferay Legend 投稿: 6403 参加年月日: 08/09/23 最新の投稿
No, you'll have to do them again. However, I'm recommending to only create them manually for testing purposes and rather write a plugin (hook) that you deploy on all systems. This plugin should create custom fields through the API (Expando*). If you do this, you'll never need to worry about typos in the custom fields - just deploy the same hook on all your systems and you can be sure that they're configured the way you need it. If you need more: Update the plugin.