Upgrade to 4.3 : how to specify the DB in updatenodeassignment.php ?

Author Message

Hakim Bouras

Saturday 03 April 2010 9:09:54 am

Hi,

The Upgrading instructions 4.2x to 4.3.x say :

Step 5: Running the system upgrade scripts
Run the following command from the root of your eZ Publish directory:
php update/common/scripts/4.3/updatenodeassignment.php

In a multisite config, how one can specify on which db (siteaccess) the script is supposed to run ?

Thanks,

Hakim Bouras
PRISMALOG - Creation de site Internet

Hakim Bouras

Sunday 04 April 2010 12:08:02 am

After digging some more, the answer is to use one site access for each DB that needs to be updated :

php update/common/scripts/4.3/updatenodeassignment.php -s <SITE-NAME>

All the scripts built using eZScript and eZCLI are natively able to receive many parameters (see eZScript::getOptions )

One more info for people using multi-site config with database settings stored in extensions, you may update the script line 141 and change :

'use-extensions' => true

Hope it helps,

Hakim

Nicolas Pastorino

Tuesday 06 April 2010 2:14:56 am

"

One more info for people using multi-site config with database settings stored in extensions, you may update the script line 141 and change :

'use-extensions' => true

"

Hi Hakim,

Thanks for sharing the solution, very useful. I can see there is a bug in the updatenodeassignment.php script, would you mind reporting it in the issue tracker ? http://issue.ez.no/ezpublish (or, if a similar issue already exists, simply comment on it).

Thanks in advance !
Cheers,

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

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 10:20:16
Script start
Timing: Jan 18 2025 10:20:16
Module start 'layout'
Timing: Jan 18 2025 10:20:16
Module start 'content'
Timing: Jan 18 2025 10:20:17
Module end 'content'
Timing: Jan 18 2025 10:20:17
Script end

Main resources:

Total runtime0.7660 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 588.3984152.6875
Module start 'layout' 0.00540.0029 741.085939.5234
Module start 'content' 0.00830.7563 780.6094561.4844
Module end 'content' 0.76450.0014 1,342.093812.0781
Script end 0.7659  1,354.1719 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.4107160.0002
Check MTime0.00140.1804160.0001
Mysql Total
Database connection0.00070.093110.0007
Mysqli_queries0.703191.7966600.0117
Looping result0.00060.0755580.0000
Template Total0.734095.820.3670
Template load0.00230.294920.0011
Template processing0.731895.534020.3659
Template load and register function0.00010.011110.0001
states
state_id_array0.00110.147010.0011
state_identifier_array0.00110.143220.0005
Override
Cache load0.00200.2593430.0000
Sytem overhead
Fetch class attribute can translate value0.00100.130420.0005
Fetch class attribute name0.00150.201450.0003
XML
Image XML parsing0.00090.116620.0004
class_abstraction
Instantiating content class attribute0.00000.001660.0000
General
dbfile0.00080.1098220.0000
String conversion0.00000.001040.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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
13content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/emphasize.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/emphasize.tplEdit templateOverride template
4content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
3content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1content/datatype/view/ezxmltags/quote.tpldatatype/ezxmltext/quote.tplextension/ezwebin/design/ezwebin/override/templates/datatype/ezxmltext/quote.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 35
 Number of unique templates used: 10

Time used to render debug report: 0.0001 secs