upgrading database in phpmyadmin

Author Message

bisk

Monday 22 September 2003 3:04:46 am

Hi, i'm trying to upgrade the database on my ezpublish-3.2.0-2 install.

How do I do that in phpmyadmin, as I can't simply upload the dbupdate-3.2.0-2-to-3.2-1.sql and run it as a query, because it gives errors about duplicate column names and existing tables.

Thanks for any help.

-------------------------------
http://www.kookfijn.nl & http://www.magento.be

Tony Wood

Monday 22 September 2003 3:27:00 am

Delete the offending line and then run it

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

bisk

Monday 22 September 2003 5:15:42 am

thanks, but that means i'll have to delete 80% of the dbupdate-3.2.0-2-to-3.2-1.sql file, as almost every line gives an error.

-------------------------------
http://www.kookfijn.nl & http://www.magento.be

Tony Wood

Monday 22 September 2003 5:47:29 am

I had the same experience, but it appears to work.

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Adri Rots

Monday 22 September 2003 10:27:42 am

Be carefull with deleting. I ended with a corrupted database.

Volker Lenz

Monday 22 September 2003 11:02:05 am

Yep, there are quite a lot of "offending lines" in dbupdate 3.2.0-2-to-3.2-1. This script does not fit in the upgrade sequence at all.

The mystery is twofold:
After having cleansed dbupdate 3.2.0-2-to-3.2-1 from each superfluous line, the cleansed script has just the following lines:

___________________________________

create index ezsearch_word_object_count on ezsearch_word(object_count);
create index ezcontentobject_status on ezcontentobject( status );
create index ezcontentobject_tree_path_depth on ezcontentobject_tree( path_string, depth );
create index ezurlalias_source_md5 on ezurlalias( source_md5 );
create index ezpreferences_name on ezpreferences( name );
ALTER TABLE ezcontentobject_attribute ADD index ( sort_key_int );
ALTER TABLE ezcontentobject_attribute ADD index ( sort_key_string );

ALTER TABLE ezsite_data DROP COLUMN id;
ALTER TABLE ezsite_data ADD PRIMARY KEY ( name );

INSERT INTO ezsite_data (name, value) VALUES('ezpublish-version', '3.2');
INSERT INTO ezsite_data (name, value) VALUES('ezpublish-release', '1');

___________________________________________________

Now, if you compare this remainder dbupdate script for ezp 3.2 beta 2 upgrades to ezp 3.2 release with the complete kernel_schema file of ezp 3.2 release, the CREATE INDEX statements of the update script are not part of the kernel_schema.sql.

In other words: Upgrading from ezp 3.1 to 3.2 does not exactly produce the ezp 3.2. kernel schema.
Since the differences are just about indices, they won't do any harm except that one might encounter differences in database performance and resource allocation.
The thing remains strange, though. One does not know which procedure to choose in order to obtain a ezp 3.2 kernel_schema as intended by ez systems ;-)

bisk

Monday 22 September 2003 11:56:09 am

thanks for the reply's, as I was wondering if I was the only one with upgrade problems on the sql part.

Anyway I've got a database back-up so I'll see how it goes.

-------------------------------
http://www.kookfijn.nl & http://www.magento.be

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 11:00:26
Script start
Timing: Jan 18 2025 11:00:26
Module start 'layout'
Timing: Jan 18 2025 11:00:26
Module start 'content'
Timing: Jan 18 2025 11:00:27
Module end 'content'
Timing: Jan 18 2025 11:00:27
Script end

Main resources:

Total runtime0.9875 sec
Peak memory usage4,096.0000 KB
Database Queries73

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 589.1563152.6406
Module start 'layout' 0.00530.0030 741.796939.4766
Module start 'content' 0.00830.9777 781.2734660.5547
Module end 'content' 0.98600.0015 1,441.828116.1406
Script end 0.9875  1,457.9688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3280160.0002
Check MTime0.00130.1356160.0001
Mysql Total
Database connection0.00070.069410.0007
Mysqli_queries0.917592.9096730.0126
Looping result0.00090.0889710.0000
Template Total0.952196.420.4760
Template load0.00210.211620.0010
Template processing0.950096.193620.4750
Template load and register function0.00020.018610.0002
states
state_id_array0.00140.138010.0014
state_identifier_array0.00130.132820.0007
Override
Cache load0.00190.1956410.0000
Sytem overhead
Fetch class attribute can translate value0.00090.088740.0002
Fetch class attribute name0.00140.143590.0002
XML
Image XML parsing0.00130.133040.0003
class_abstraction
Instantiating content class attribute0.00000.0023100.0000
General
dbfile0.00180.1798220.0001
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
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
12content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 29
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs