Forums / Suggestions / Clearer upgrade requirements

Clearer upgrade requirements

Author Message

Andrew Kelly

Thursday 16 November 2006 5:23:52 am

In the upgrade folder of a distribution package there is a wonderfully clear and detailed bit of information on what to do with the database on each incremental upgrade. There are scripts in place for each step up the ladder, for instance, in file
update/database/postgresql/3.8/dbupdate-3.8.3-to-3.8.4.sql we see:

UPDATE ezsite_data SET value='3.8.4' WHERE name='ezpublish-version';
UPDATE ezsite_data SET value='10' WHERE name='ezpublish-release';

Would it be possible to offer this kind of granular instruction regarding all the scripts in update/common/scripts ?
I suggest that withing the scripts dir, there be sub-dirs analog to those where the DB is concerned, 3.0, 3.1, 3.2 ... 3.8, you get the picture. Then inside of 3.8, for example, there would be brief text files, upgrade_3.8.0_to_3.8.1, upgrade_3.8.1_to_3.8.1, etc.
Inside the files you would read which scripts in upgrade/common/scripts must be run for that particular incremental upgrade. As an example:

In file upgrade/common/scripts/3.8/upgrade_3.8.3_to_3.8.4 you'd read:

correctxmltextclasses.php --global
(perhaps some explanitory text)

I've been using eZ since about 2.2.x and there never really has been adequate docu on upgrading and I think something like this would be immensely helpful.

AK

Kristian Hole

Thursday 16 November 2006 7:35:55 am

Did you check out the upgrade documentation?

http://ez.no/doc/ez_publish/upgrading

Kristian

http://ez.no/ez_publish/documenta...tricks/show_which_templates_are_used
http://ez.no/doc/ez_publish/techn...te_operators/miscellaneous/attribute

Andrew Kelly

Friday 17 November 2006 1:20:54 am

Yes, I did, but I repeat my suggestion nonetheless.
This information should be available in the distribution packages. Having it online as well is a bonus, but it doesn't help somebody who's trying to upgrade thier laptop on a boat or something.

The tool which should be online but is not, is a DB of update requirements which can be queried.

Ideally somebody would be able to input their current version and thier target version, and then they would be returned a script of exactly what they must do. I'd be happy if only the scripts which must be run were listed, but in the perfect world the returned result would be every step needed, beginning with "download this package" and ending with "congratulations". The list would have direct links to anything which needed to be downloaded, and the whole interface would offer the possibility of having the results e-mailed to one or more recipients.

In fact, if somebody in development at eZ could get me some formal and complete documentation on which scripts need to be run at which incremental upgrades, I'll build the thing myself and give it back to the community.

Andy

eZ debug

Timing: Jan 18 2025 10:35:46
Script start
Timing: Jan 18 2025 10:35:46
Module start 'content'
Timing: Jan 18 2025 10:35:46
Module end 'content'
Timing: Jan 18 2025 10:35:46
Script end

Main resources:

Total runtime0.1892 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 588.8438180.8359
Module start 'content' 0.00620.0044 769.679797.9922
Module end 'content' 0.01060.1786 867.6719529.5781
Script end 0.1892  1,397.2500 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00321.7050200.0002
Check MTime0.00120.6222200.0001
Mysql Total
Database connection0.00070.371510.0007
Mysqli_queries0.143775.95001410.0010
Looping result0.00140.76021390.0000
Template Total0.178394.210.1783
Template load0.00070.365710.0007
Template processing0.177693.850310.1776
Override
Cache load0.00050.256810.0005
Sytem overhead
Fetch class attribute can translate value0.00090.465510.0009
XML
Image XML parsing0.00030.139610.0003
General
dbfile0.00190.9864200.0001
String conversion0.00000.003130.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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