Forums / Install & configuration / upgrading database in phpmyadmin

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

eZ debug

Timing: Jan 18 2025 04:11:12
Script start
Timing: Jan 18 2025 04:11:12
Module start 'content'
Timing: Jan 18 2025 04:11:13
Module end 'content'
Timing: Jan 18 2025 04:11:13
Script end

Main resources:

Total runtime1.0049 sec
Peak memory usage4,096.0000 KB
Database Queries210

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 587.8359180.8203
Module start 'content' 0.00700.8418 768.6563665.6484
Module end 'content' 0.84880.1560 1,434.3047341.0625
Script end 1.0048  1,775.3672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00480.4758210.0002
Check MTime0.00190.1920210.0001
Mysql Total
Database connection0.00110.109810.0011
Mysqli_queries0.917191.26622100.0044
Looping result0.00240.23572080.0000
Template Total0.974296.920.4871
Template load0.00210.207820.0010
Template processing0.972196.734320.4860
Template load and register function0.00020.019310.0002
states
state_id_array0.00210.207810.0021
state_identifier_array0.00170.168520.0008
Override
Cache load0.00170.1733410.0000
Sytem overhead
Fetch class attribute can translate value0.00290.287950.0006
Fetch class attribute name0.00230.232590.0003
XML
Image XML parsing0.00160.158450.0003
class_abstraction
Instantiating content class attribute0.00000.0023100.0000
General
dbfile0.00190.1871330.0001
String conversion0.00000.000730.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
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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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