If we're creating a table the first time, note that we now expect the current
version to be 0, not -1.
This commit is contained in:
@@ -516,6 +516,7 @@ public class DepotMarshaller<T extends PersistentRecord> implements QueryMarshal
|
|||||||
log.info("Creating initial version record for " + _pClass.getName() + ".");
|
log.info("Creating initial version record for " + _pClass.getName() + ".");
|
||||||
// if not, create a version entry with version zero
|
// if not, create a version entry with version zero
|
||||||
_meta.initializeVersion(getTableName());
|
_meta.initializeVersion(getTableName());
|
||||||
|
currentVersion = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// now check whether we need to migrate our database schema
|
// now check whether we need to migrate our database schema
|
||||||
|
|||||||
Reference in New Issue
Block a user