sql ALTER in eZPersistentObject

Author Message

Esben Visfeldt

Monday 02 August 2004 1:23:52 am

Can anyone tell me if it is possible to make an ALTER sql query using eZPersistentObject?
I would like to add columns to a DB using a module that I'm building.
As far as I can see, I can only make changes to rows. I would really prefer to use eZPersistentObject instead of some query hack...

Björn Dieding@xrow.de

Monday 02 August 2004 3:19:27 am

Is not possible.

The definfition of a eZPersistentObject is not only dependent on the db column definitions it is also dependaten on the definition stored in eZPersistentObject::definition()

other helper functions are dependant on information from eZPersistentObject::definition()

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

Esben Visfeldt

Monday 02 August 2004 7:44:31 am

Thanks Björn!

I guess I will have to manage without eZPersistentObject...

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 31 2025 04:28:52
Script start
Timing: Jan 31 2025 04:28:52
Module start 'layout'
Timing: Jan 31 2025 04:28:52
Module start 'content'
Timing: Jan 31 2025 04:28:52
Module end 'content'
Timing: Jan 31 2025 04:28:52
Script end

Main resources:

Total runtime0.0116 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.1328151.2109
Module start 'layout' 0.00410.0017 739.343836.6484
Module start 'content' 0.00580.0043 775.992290.1406
Module end 'content' 0.01020.0014 866.132829.9922
Script end 0.0115  896.1250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002218.6499140.0002
Check MTime0.00119.0868140.0001
Mysql Total
Database connection0.00065.596010.0006
Mysqli_queries0.001815.451930.0006
Looping result0.00000.078410.0000
Template Total0.00097.610.0009
Template load0.00075.942410.0007
Template processing0.00021.670110.0002
Override
Cache load0.00053.917610.0005
General
dbfile0.00108.398180.0001
String conversion0.00000.045440.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