Instead of running a second migration.
What I do is this. At the end of the initial migration .java file, I have this statement
ERXJDBCUtilities.executeUpdateScriptFromResourceNamed(database.adaptorChannel(), "MigrationScripts/MyModel0_MySQL.migration", "MyModelFrameworkName");
Then in the
MyModelFrameworkName/Resources directory, I create a MigrationScripts directory and add the file MyModel0_MySQL.migration file.
In that file, I would have my INSERT statements to set the initial state of the database.
Paul
On Dec 16, 2012, at 9:34 AM, James Cicenia <
email@hidden> wrote:
I have always created a second migration file with SQL inserts. Haven't experienced any problems.
DateModel0 ==> setup tables, etc.
DateModel1 ==> bootstrap data sql inserts
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