All the migration method does is write it into the model. I would
assume you can define it in the model yourself using the same userInfo
key er.extensions.eoattribute.default, but I have not tried it. The
main thing to keep in mind is that it only works if you're using the
Postgresql, Oracle, H2, Derby, or Frontbase plugins in Wonder.
There's no support for it in the Wonder MySQL plugin currently.
Ramsey
On Oct 4, 2010, at 2:50 PM, John Huss wrote:
But this requires defining the default by hand in the migration, not
in the model, right?
John
On Mon, Oct 4, 2010 at 12:38 PM, Ramsey Gurley <[email protected]>
wrote:
On Oct 4, 2010, at 12:40 PM, John Huss wrote:
My wish is that in EntityModeler "Generate SQL" would also include
the default values, and "Generate Migration" too.
John
Most of the migration methods have a method setting the default
value. They set the default value using the key
er.extensions.eoattribute.default in the userInfo dictionary in the
model. That value produces the default value in the creation clause
sent to the database, but it requires plugin support.
Ramsey
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]