eZUpgrade manager using SVN

Author Message

H-Works Agency

Saturday 29 January 2011 4:16:57 am

Hello,

How do you think it'd be possible to create an ezpublish distribution files, extensions (both official & community) and database structure upgrade manager using SVN ?

SVN would diff files and upgrade necessary distribution files between versions - that seems possible - but would it be able to handle database structure differences ?

Then upgrade script would handle sql datas transformations if needed.

Just a discussion to gather general feeling about this technique.

Cheers

EZP is Great

Gaetano Giunta

Monday 31 January 2011 1:17:48 am

Using svn to version the ddl scripts that create the database is easy.

The annoying thing is that this is not enough, you still need to create the update scripts by hand (or use some db reverse-engineering tool)

Principal Consultant International Business
Member of the Community Project Board

H-Works Agency

Wednesday 09 February 2011 12:35:24 am

Uhm i understand.

But how ezpublish structure is different from wordpress or magento which offer a one button upgrade process ? They all work with php classes and a sql database.

EZP is Great

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

Main resources:

Total runtime1.3788 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0072 589.0313152.6250
Module start 'layout' 0.00720.0032 741.656339.4531
Module start 'content' 0.01031.3670 781.1094537.3438
Module end 'content' 1.37740.0014 1,318.453112.1641
Script end 1.3787  1,330.6172 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.2850160.0002
Check MTime0.00140.1031160.0001
Mysql Total
Database connection0.00110.083210.0011
Mysqli_queries1.324296.0453570.0232
Looping result0.00060.0455550.0000
Template Total1.342497.420.6712
Template load0.00200.147520.0010
Template processing1.340497.216720.6702
Template load and register function0.00010.008410.0001
states
state_id_array0.00120.087610.0012
state_identifier_array0.00140.104820.0007
Override
Cache load0.00170.1245180.0001
Sytem overhead
Fetch class attribute can translate value0.00180.132220.0009
Fetch class attribute name0.00180.130150.0004
XML
Image XML parsing0.00110.078620.0005
class_abstraction
Instantiating content class attribute0.00000.001060.0000
General
dbfile0.00080.0610230.0000
String conversion0.00000.000740.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
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.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: 5

Time used to render debug report: 0.0001 secs