how to preserve content when upgrading eZ Publish

Author Message

Lars Eirik R

Wednesday 07 April 2010 1:33:55 pm

Hi.

I am currently running version 4.1.3 and need to upgrade to 4.2.0

I have modified some of the ezwebin classes with additional fields.

If i upgrade to a new version of the ezwebin classes , for instance the article class i am given some options: The one i would like is to replace existing class (Warning! 195 content object(s) and their sub-items will be removed)

1Does this really remove all of my articles, meaning i lose all my content?

There has to be a good way of understanding how to successfully do upgrades, but i have not gotten any good responses before when asking.

Please help me.

Hakim Bouras

Friday 09 April 2010 12:23:01 am

Hi Lars,

I would suggest you to update the existing classes manually from the admin interface, by comparing your class definition and the class definition from a clean 4.2 install. This way, you will keep your existing data.

Do not forget to backup your database before.

Cheers,

Hakim Bouras
PRISMALOG - Creation de site Internet

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 30 2025 19:50:25
Script start
Timing: Jan 30 2025 19:50:25
Module start 'layout'
Timing: Jan 30 2025 19:50:25
Module start 'content'
Timing: Jan 30 2025 19:50:27
Module end 'content'
Timing: Jan 30 2025 19:50:27
Script end

Main resources:

Total runtime1.2922 sec
Peak memory usage8,192.0000 KB
Database Queries55

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 588.2656151.2266
Module start 'layout' 0.00540.0038 739.4922220.7344
Module start 'content' 0.00921.2822 960.22664,407.7031
Module end 'content' 1.29140.0008 5,367.92977.8125
Script end 1.2921  5,375.7422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.2867160.0002
Check MTime0.00130.0986160.0001
Mysql Total
Database connection0.00080.058710.0008
Mysqli_queries1.201592.9848550.0218
Looping result0.00050.0372530.0000
Template Total1.229695.220.6148
Template load0.00200.154820.0010
Template processing1.227694.999720.6138
Template load and register function0.00140.107610.0014
states
state_id_array0.00200.156010.0020
state_identifier_array0.00210.158820.0010
Override
Cache load0.00170.1289200.0001
Sytem overhead
Fetch class attribute can translate value0.00180.143020.0009
Fetch class attribute name0.00240.182340.0006
XML
Image XML parsing0.00100.079820.0005
class_abstraction
Instantiating content class attribute0.00000.000640.0000
General
dbfile0.00610.4755220.0003
String conversion0.00000.000640.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs