Re: Entity Modeler, attributes default value for migrations
Re: Entity Modeler, attributes default value for migrations
- Subject: Re: Entity Modeler, attributes default value for migrations
- From: Theodore Petrosky <email@hidden>
- Date: Thu, 19 Apr 2012 07:05:36 -0700 (PDT)
I didn't understand 'edit manually' until I used Chuck's method of adding a "User Info" entry in Entity Modeler. Then I used TextMate on the plist and understood.
Thanks,
Ted
--- On Wed, 4/18/12, John Huss <email@hidden> wrote: From: John Huss <email@hidden> Subject: Re: Entity Modeler, attributes default value for migrations To: "Theodore Petrosky" <email@hidden>, "WebObjects-Dev Mailing List List" <email@hidden> Date: Wednesday, April 18, 2012, 4:07 PM
You have to add it manually into the userInfo dictionary by editing by model with a text editor. For
example, for the ATTRIBUTE called "deleted":
... { columnName = "scp_deleted";
name = deleted; prototypeName = intBoolean; userInfo = {default = 0; }; width = 1; } ...
On Wed, Apr 18, 2012 at 2:33 PM, Theodore Petrosky <email@hidden> wrote:
When I create an attribute in Entity Modeler, and create the migrations, it does a beautiful job.
creativeBriefTable.newFlagBooleanColumn("isfiled", false);
and I know I can add a default value here
creativeBriefTable.newFlagBooleanColumn("isfiled", false, false);
problem is that if I go back and alter the schema and recreate the migration, I must remember to add in the default selector(s).
I don't see in EM where I could put in a default value (or I am blind).
Is there a place to put in a default value in Entity Modeler so the migrations it creates include the default value?
Ted
_______________________________________________
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