From 9e42f3b319e8e3835921044236cbcb22222cdab8 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Thu, 1 Mar 2007 23:43:21 +0000 Subject: [PATCH] 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. --- src/java/com/samskivert/jdbc/depot/DepotMarshaller.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/com/samskivert/jdbc/depot/DepotMarshaller.java b/src/java/com/samskivert/jdbc/depot/DepotMarshaller.java index bc8ecd2..b6bdeda 100644 --- a/src/java/com/samskivert/jdbc/depot/DepotMarshaller.java +++ b/src/java/com/samskivert/jdbc/depot/DepotMarshaller.java @@ -633,7 +633,7 @@ public class DepotMarshaller _postamble); String[] definition = _declarations.toArray(new String[_declarations.size()]); JDBCUtil.createTableIfMissing(conn, getTableName(), definition, _postamble); - updateVersion(conn, 1); + updateVersion(conn, _schemaVersion); } return 0; }