Re: Changing field type when data already exists

Philippe Vollenweider <[email protected]>
Newsgroups gmane.comp.cms.jahia.template
Message-ID <[email protected]>
Hi,

A definition is unique in jahia so you can not change the type of a field 
with the same name.

The only way would be to do it in the database. I did not try this, but I 
think you could try to change the type in table jahia_fields_def_prop for 
your definition, then change the language "shared" to the language you want 
for each fields in table jahia_fields_data that use your definition.

Philippe

At 21.02.2005 15:11, you wrote:
>Hello,
>
>I would like a smalltext_shared_lang field to become a smalltext field but 
>I can't do it.
>
>When I change the field type, I get the following error :
>
>Cannot change field type because field data already exists
>
>
>Is there a solution ?
>
>Thanks,
>
>Cédric
>
>
>

-------=[ pvollenweider at jahia dot com ]=---------
Jahia : A collaborative source CMS and Portal Server
www.jahia.org Community and product web site
www.jahia.com Commercial services company
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.