Re: ERXSQLHelper
Re: ERXSQLHelper
- Subject: Re: ERXSQLHelper
- From: Theodore Petrosky <email@hidden>
- Date: Mon, 12 Jan 2015 13:00:50 -0500
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@hidden> 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@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden