• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: ERXSQLHelper
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: ERXSQLHelper
      • From: OC <email@hidden>
References: 
 >ERXSQLHelper (From: OC <email@hidden>)

  • Prev by Date: ERXSQLHelper
  • Next by Date: Re: ERXSQLHelper
  • Previous by thread: ERXSQLHelper
  • Next by thread: Re: ERXSQLHelper
  • Index(es):
    • Date
    • Thread