git-svn-id: https://samskivert.googlecode.com/svn/trunk@2042 6335cc39-0255-0410-8fd6-9bcaacd3b74c

This commit is contained in:
mdb
2007-01-30 22:40:24 +00:00
parent 2893383dfa
commit f8003a05c8
2 changed files with 4 additions and 1 deletions
@@ -680,6 +680,7 @@ public class DepotMarshaller<T extends PersistentRecord>
for (EntityMigration migration : _migrations) {
if (migration.runBeforeDefault() &&
migration.shouldRunMigration(currentVersion, _schemaVersion)) {
migration.init(getTableName(), _fields);
ctx.invoke(migration);
}
}
@@ -119,7 +119,9 @@ public abstract class EntityMigration extends Modifier
/**
* This is called to provide the migration with the name of the entity table and access to its
* field marshallers prior to being invoked.
* field marshallers prior to being invoked. This will <em>only</em> be called after this
* migration has been determined to be runnable so one cannot rely on this method having been
* called in {@link #shouldRunMigration}.
*/
protected void init (String tableName, HashMap<String,FieldMarshaller> marshallers)
{