From: David H. <pro...@ma...> - 2008-10-29 21:24:05
|
Hi Josh, Have you had the chance to look at the package overview for ERXMigrations? This helped me a lot. http://webobjects.mdimension.com/wonder/api/er/extensions/migration/ package-summary.html You're doing your migration the old way (with the sql file). You can now use the java api to do this (at least for MySQL, FrontBase and PostgreSQL) and you can have EntityModeler generate your first migration 0 class. Take a look at er.attachment.migrations to see an example how they are used. Have you declared your database variables in your properties file? I think that Migrations will need to create a database update table in your database. i.e. dbConnectURLGLOBAL=jdbc:FrontBase://localhost/databaseName dbConnectUserGLOBAL=bug dbEOPrototypesEntityGLOBAL=EOJDBCFrontBasePrototypes So long as your model is in the project or referenced from the project I don't believe you need to put in the model name or the class prefix in your properties. David On 29-Oct-08, at 1:52 PM, Josh Paul wrote: > I'm attempting to get migrations working on a new project. However, it > doesn't run upon launch. I have the following: > > er.migration.migrateAtStartup=true > er.migration.createTablesIfNecessary=true > er.migration.modelNames=AdGrinder > AdGrinder.MigrationClassPrefix=com.adgrinder.migration.AdGrinder > > The model is named AdGrinder in the Resources directory > There is a sql file named AdGrinder0_FrontBase_Upgrade.migration in > the Resources directory > There is a java file named AdGrinder0.java with the following: > public AdGrinder0() { > super(true); > } > > Is there something I've overlooked? > > ---------------------------------------------------------------------- > --- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win > great prizes > Grand prize is a trip for two to an Open Source event anywhere in > the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Wonder-disc mailing list > Won...@li... > https://lists.sourceforge.net/lists/listinfo/wonder-disc |