How I can create a db_schema.dba file?

Author Message

Israel Martín

Friday 14 January 2011 3:49:52 am

Hi!

I need create some tables and i would like make the db_schema.dba file but i don't know how to specify the table engine, charset and comment.

¿Have anybody an example of a db_schema.dba file with all the posibilities?.

Thanks!.

My personal site: http://israel-martin.es
eZ Publish Developer Basics Certification (4.4): http://ez.no/certification/verify/388211

Gaetano Giunta

Friday 14 January 2011 5:05:36 am

The ezsqldumpschema.php script in bin/php can create the dba file for you. Unfortunately it is not yet capable of dumping only a couple of tables instead of the whole db (but there is a feature request for that)

Principal Consultant International Business
Member of the Community Project Board

Israel Martín

Friday 14 January 2011 12:26:32 pm

I have been testing the ezsqldumpschema.php script and it works fine but the table engine, charset and comment, are not specified in the generated file... Maybe it isn't possible :( .

Thank you for help!

My personal site: http://israel-martin.es
eZ Publish Developer Basics Certification (4.4): http://ez.no/certification/verify/388211

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

Main resources:

Total runtime0.0126 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0041 588.2500151.2266
Module start 'layout' 0.00410.0022 739.476636.6719
Module start 'content' 0.00640.0049 776.148490.0625
Module end 'content' 0.01120.0013 866.210933.9766
Script end 0.0125  900.1875 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002217.1526140.0002
Check MTime0.00108.1271140.0001
Mysql Total
Database connection0.00053.720710.0005
Mysqli_queries0.002318.457430.0008
Looping result0.00000.079810.0000
Template Total0.00107.810.0010
Template load0.00086.007510.0008
Template processing0.00021.792910.0002
Override
Cache load0.00054.159510.0005
General
dbfile0.00119.074980.0001
String conversion0.00000.049440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs