Adding an attribute

Author Message

Alejandro Serrano

Monday 06 November 2006 11:40:55 am

Hi,
I need to change a class design. The only thing I have to do is to add a new 'Yes/No' value to the class. However, I need this attribute to be by default No in the objects I already have in the database. Can this be achieved?
Thanks in advance

Jacobo Quiles

Tuesday 07 November 2006 12:37:45 am

Hi!

Just go to Setup -> Classes, select the class you need to edit and add the new attribute of type 'checkbox'. Make sure you set the default value to not checked.

Microblau SL
http://www.microblau.net

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 18 2025 19:11:30
Script start
Timing: Jan 18 2025 19:11:30
Module start 'layout'
Timing: Jan 18 2025 19:11:30
Module start 'content'
Timing: Jan 18 2025 19:11:32
Module end 'content'
Timing: Jan 18 2025 19:11:32
Script end

Main resources:

Total runtime1.7688 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 587.7891152.6094
Module start 'layout' 0.00710.0045 740.398439.4297
Module start 'content' 0.01151.7557 779.8281520.0469
Module end 'content' 1.76720.0015 1,299.87508.1875
Script end 1.7688  1,308.0625 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.1906160.0002
Check MTime0.00140.0780160.0001
Mysql Total
Database connection0.00100.055710.0010
Mysqli_queries1.720697.2770540.0319
Looping result0.00060.0348520.0000
Template Total1.731097.920.8655
Template load0.00200.113520.0010
Template processing1.728997.746220.8645
Template load and register function0.00030.018610.0003
states
state_id_array0.00090.048710.0009
state_identifier_array0.00170.094520.0008
Override
Cache load0.00170.0978100.0002
Sytem overhead
Fetch class attribute can translate value0.00120.065420.0006
Fetch class attribute name0.00120.065930.0004
XML
Image XML parsing0.00240.133320.0012
class_abstraction
Instantiating content class attribute0.00000.000530.0000
General
dbfile0.00230.1287170.0001
String conversion0.00000.000540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs