Forums / Developer / sql ALTER in eZPersistentObject

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 X

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()

Esben Visfeldt

Monday 02 August 2004 7:44:31 am

Thanks Björn!

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