Rebuild a site from old database tables

Author Message

Trond Åge Kvalø

Tuesday 31 August 2004 4:45:32 am

I'm trying to rebuild a site from old database tables by using insert ... replace statements in mySQL.

My progress can be seen in: http://www.ez.no/community/forum/developer/recreating_the_root_node_manually

The tables are now filled with data, but nothing except the root node is shown in the admin interface.

First of all, is this a bad idea? Are there caveats that I'm bound to hit?

What tables do I need to edit to accomplish such a thing?

So far I've recreated the following tables:

all tables that start with ezcontentclass (since I had made some custom classes)
all tables that start with ezcontentobject
eznode_assignment
ezurlalias

But I'm not sure if this is enough, so any other help would be deeply appreciated.

BTW: Has anyone made a relational diagram of the 3.4-1 database?

best regards

trondåge

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 19 2025 15:17:33
Script start
Timing: Jan 19 2025 15:17:33
Module start 'layout'
Timing: Jan 19 2025 15:17:33
Module start 'content'
Timing: Jan 19 2025 15:17:34
Module end 'content'
Timing: Jan 19 2025 15:17:34
Script end

Main resources:

Total runtime0.6192 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 589.2734152.6406
Module start 'layout' 0.00600.0027 741.914139.4766
Module start 'content' 0.00870.6093 781.3906429.0703
Module end 'content' 0.61800.0011 1,210.46098.1406
Script end 0.6192  1,218.6016 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.4859160.0002
Check MTime0.00120.1979160.0001
Mysql Total
Database connection0.00080.123910.0008
Mysqli_queries0.583294.1803460.0127
Looping result0.00050.0859440.0000
Template Total0.588595.020.2942
Template load0.00230.378120.0012
Template processing0.586194.653920.2931
Template load and register function0.00010.021010.0001
states
state_id_array0.00090.143610.0009
state_identifier_array0.00090.150020.0005
Override
Cache load0.00190.3002160.0001
Sytem overhead
Fetch class attribute can translate value0.00040.058010.0004
Fetch class attribute name0.00050.074410.0005
XML
Image XML parsing0.00010.015810.0001
class_abstraction
Instantiating content class attribute0.00000.000710.0000
General
dbfile0.00050.0881100.0001
String conversion0.00000.001340.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
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/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: 6
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs