When we create a table for a persistent record, set the starting version to the

correct value to avoid spuriously trying to migrate it immediately thereafter.
This commit is contained in:
Michael Bayne
2007-03-01 23:43:21 +00:00
parent 9c5765c38d
commit 9e42f3b319
@@ -633,7 +633,7 @@ public class DepotMarshaller<T extends PersistentRecord>
_postamble);
String[] definition = _declarations.toArray(new String[_declarations.size()]);
JDBCUtil.createTableIfMissing(conn, getTableName(), definition, _postamble);
updateVersion(conn, 1);
updateVersion(conn, _schemaVersion);
}
return 0;
}