This commit is contained in:
Michael Bayne
2007-01-30 22:40:24 +00:00
parent d6156c201a
commit 916dfb3cfa
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)
{