Migrations and subsequent changes to DB model

2010-08-29 Thread Farrukh Ijaz
Hi All,

I'm using Migrations for the first time. I generated Migration for my model. I 
created a blank db and use Migration so the db is up to date. How the 
subsequent changes to the db will be handled using Migrations? Do I need to 
prepare SQL scripts manually or generating Migration again can detect the 
change and generate the code accordingly?

Thanks,

Farrukh ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Migrations and subsequent changes to DB model

2010-08-29 Thread David Avendasora

On Aug 29, 2010, at 3:17 AM, Farrukh Ijaz wrote:

 Hi All,
 
 I'm using Migrations for the first time. I generated Migration for my model. 
 I created a blank db and use Migration so the db is up to date. How the 
 subsequent changes to the db will be handled using Migrations?



 Do I need to prepare SQL scripts manually

Ahg! No. :-)

 or generating Migration again can detect the change and generate the code 
 accordingly?

No, unfortunately generating the migration again will regenerate everything. 
After the initial migration, you'll need to manually write a new migration 
class, or do generate and manually remove the duplicate stuff - whichever is 
less work in your situation.

Basically create a second model class and increment the number from 0 (which 
is what your first migration class should have) to 1, eg MyModel1.java

Basically, Migrations will check to see if 0 was run, then it will look for the 
next class (by number) and then execute that one. And on and on and on.

Dave

 
 Thanks,
 
 Farrukh ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40avendasora.com
 
 This email sent to webobje...@avendasora.com
 
 

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


AjaxDatePicker Revisited

2010-08-29 Thread Klaus Berkling
I got AjaxDatePicker to work quite easily, so I though.

I have not found out where to set the date selected in the calendar.  

I pre-populate the field with a value but when clicking on the date field it 
shows the current month in the calendar.  Like-wise when I change the date, 
using the calendar, next time I click the field it still does not show the date 
field's date in the calendar.

Here's my binding:

HotelCheckInDate : AjaxDatePicker {
value = hotelCheckInDate;
format = %m/%d/%y;
size = 8;
calendarCSS = myCalendar.css;
calendarCSSFramework = application;
}

Am I missing a binding?

(The initial value of  is set to one day before the beginning of a conference.)


kib

We keep moving forward, opening new doors, and doing new things, because we're 
curious and curiosity keeps leading us down new paths.
Walt Disney

Klaus Berkling
Web Application Dev.  Systems Administrator
DynEd International, Inc.
www.dyned.com | www.eskimo.com/~kiberkli




 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: AjaxDatePicker Revisited

2010-08-29 Thread Paul D Yu
Ah, the date format has to be %m/%d/%Y  4-digit year.

Paul
On Aug 29, 2010, at 4:58 PM, Klaus Berkling wrote:

 I got AjaxDatePicker to work quite easily, so I though.
 
 I have not found out where to set the date selected in the calendar.  
 
 I pre-populate the field with a value but when clicking on the date field it 
 shows the current month in the calendar.  Like-wise when I change the date, 
 using the calendar, next time I click the field it still does not show the 
 date field's date in the calendar.
 
 Here's my binding:
 
 HotelCheckInDate : AjaxDatePicker {
   value = hotelCheckInDate;
   format = %m/%d/%y;
   size = 8;
   calendarCSS = myCalendar.css;
   calendarCSSFramework = application;
 }
 
 Am I missing a binding?
 
 (The initial value of  is set to one day before the beginning of a 
 conference.)
 
 
 kib
 
 We keep moving forward, opening new doors, and doing new things, because 
 we're curious and curiosity keeps leading us down new paths.
 Walt Disney
 
 Klaus Berkling
 Web Application Dev.  Systems Administrator
 DynEd International, Inc.
 www.dyned.com | www.eskimo.com/~kiberkli
 
 
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/webobjects-dev/pyu%40mac.com
 
 This email sent to p...@mac.com

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com