Changing an Attribute Datatype

Author Message

Deane Barker

Sunday 09 January 2005 5:46:26 am

Is it possible to change the datatype of an attribute after the class has been created? Or do you have to delete the attribute and recreate it?

Deane

Roy Bøhmer

Monday 10 January 2005 2:40:09 pm

I'm not 100% sure if it can't be done, but I've never heard of that possibility. I assume its impossible.
Maybe someone else knows for sure...

Roy

Mark Marsiglio

Wednesday 07 December 2005 8:42:35 pm

A new datatype would have to be created. They cannot be changed once they have been added.

There are some ways using import/export to move data from an old datatype to a new one, but because the structure of each datatype is unique, they cannot be changed from one to another.

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 20 2025 12:48:49
Script start
Timing: Jan 20 2025 12:48:49
Module start 'layout'
Timing: Jan 20 2025 12:48:49
Module start 'content'
Timing: Jan 20 2025 12:48:49
Module end 'content'
Timing: Jan 20 2025 12:48:49
Script end

Main resources:

Total runtime0.0155 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 589.1563152.6250
Module start 'layout' 0.00530.0031 741.781339.4609
Module start 'content' 0.00840.0051 781.242289.3203
Module end 'content' 0.01340.0020 870.562530.3047
Script end 0.0155  900.8672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002516.0667140.0002
Check MTime0.00117.1464140.0001
Mysql Total
Database connection0.00106.325510.0010
Mysqli_queries0.002616.938230.0009
Looping result0.00000.096810.0000
Template Total0.001610.410.0016
Template load0.00085.138810.0008
Template processing0.00085.234110.0008
Override
Cache load0.00053.306510.0005
General
dbfile0.00031.658680.0000
String conversion0.00000.064640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs