have you looked at the migrations? 
               
ERXMigrationTable personTable = database.existingTableNamed("person");
                
personTable.existingColumnNamed("Foo").renameTo("Bar”);

personTable.newStringColumn(name, width, allowsNull)



On Jan 12, 2015, at 12:51 PM, OC <o...@ocs.cz> wrote:

> Hello there,
> 
> I need to generate add (and later also rename/drop) column SQL commands for 
> given EOAttributes, like e.g.,
> 
> ALTER TABLE "T_FOO" ADD COLUMN "C_BAR" VARCHAR(256);
> 
> etc. So far, I haven't succeeded to find appropriate service in ERXSQLHelper 
> (nor elsewhere): there seems to be dozen-odd methods to generate schema SQL 
> for entities, but absolutely none for attributes. Am I just blind and there 
> is an appropriate SQL generator somewhere in EOF/WOnder APIs, or there is 
> indeed none and I am on my own and have to DIMyself?
> 
> Thanks,
> OC
> 
> 
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com
> 
> This email sent to tedp...@yahoo.com


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to