er.migration.migrateAtStartup=true
er.migration.createTablesIfNecessary=true
er.migration.modelNames=Model1,Model2
Model1.MigrationClassPrefix=com.xxx.Model1
Model2.MigrationClassPrefix=com.xxx.Model2
@Override
public void upgrade(EOEditingContext editingContext, ERXMigrationDatabase database) throws Throwable {
ERXJDBCUtilities.createTablesForModel(database.adaptorChannel(), database.model());
}
Apr 06 13:18:11 SmalltownAdmin[8888] (ERXNSLogLog4jBridge.java:41) WARN NSLog - A fatal exception occurred: null
[2008-4-6 13:18:11 PDT] <main> java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextEntry(HashMap.java:841)
at java.util.HashMap$KeyIterator.next(HashMap.java:877)
at er.extensions.migration.ERXMigrator._buildDependenciesForModelsNamed(ERXMigrator.java:236)
at er.extensions.migration.ERXMigrator.migrateToLatest(ERXMigrator.java:158)
at er.extensions.ERXApplication.finishInitialization(ERXApplication.java:831)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java:122)
at com.webobjects.foundation.NSNotificationCenter$_Entry.invokeMethod(NSNotificationCenter.java:588)
at com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:532)
at com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:546)
at com.webobjects.appserver.WOApplication.run(WOApplication.java:1223)
at er.extensions.ERXApplication.run(ERXApplication.java:925)
at com.webobjects.appserver.WOApplication.main(WOApplication.java:547)
at er.extensions.ERXApplication.main(ERXApplication.java:397)