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 ([email protected]) > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40avendasora.com > > This email sent to [email protected] > > _______________________________________________ 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]
