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 <[email protected]> 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 ([email protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com
>
> This email sent to [email protected]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]