cancel
Showing results for 
Search instead for 
Did you mean: 

Changing a field from one to many values

cshryock
Champ in-the-making
Champ in-the-making
Hello,

I want to change a field from one to multiple:

<multiple>false</multiple>
to
<multiple>true</multiple>

Is this going to cause all of my current records to freak out? If yes, how can I do an upgrade?

Thanks in advance, my googling and forum searching didn't find the answer to my question.
-Chad.
4 REPLIES 4

smicyk
Champ in-the-making
Champ in-the-making
Hi,

your records will be ok, after such change but you must remember that after this you should check what type of value is in your properties. For nodes before change it will be simple type like String, Double etc. After change it will be a list of Strings, Doubles etc. You should call action which will change all simple values to list values before you do anything with such records.

smicyk

cshryock
Champ in-the-making
Champ in-the-making
Hi smicyk,

Thanks for the reply.

What do you mean by:

You should call action

Thanks again,
Chad.

mrogers
Star Contributor
Star Contributor
It should be O.K.

However please note that the other way (multiple to single) would be problematic.

smicyk
Champ in-the-making
Champ in-the-making
Hi,

by call an action I mean, that you should create Alfresco Action which do the conversion or use boostrap mechanism to do conversion before application fully starts.

smicyk