From dbf06845672ed2c8c3961b3ee73e3602465f0987 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Fri, 13 Jan 2012 18:35:29 +0000 Subject: [PATCH] If we're creating a table the first time, note that we now expect the current version to be 0, not -1. --- src/main/java/com/samskivert/depot/impl/DepotMarshaller.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/samskivert/depot/impl/DepotMarshaller.java b/src/main/java/com/samskivert/depot/impl/DepotMarshaller.java index 68c30ae..e374ca3 100644 --- a/src/main/java/com/samskivert/depot/impl/DepotMarshaller.java +++ b/src/main/java/com/samskivert/depot/impl/DepotMarshaller.java @@ -516,6 +516,7 @@ public class DepotMarshaller implements QueryMarshal log.info("Creating initial version record for " + _pClass.getName() + "."); // if not, create a version entry with version zero _meta.initializeVersion(getTableName()); + currentVersion = 0; } // now check whether we need to migrate our database schema