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. git-svn-id: https://samskivert.googlecode.com/svn/trunk@2065 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -633,7 +633,7 @@ public class DepotMarshaller<T extends PersistentRecord>
|
|||||||
_postamble);
|
_postamble);
|
||||||
String[] definition = _declarations.toArray(new String[_declarations.size()]);
|
String[] definition = _declarations.toArray(new String[_declarations.size()]);
|
||||||
JDBCUtil.createTableIfMissing(conn, getTableName(), definition, _postamble);
|
JDBCUtil.createTableIfMissing(conn, getTableName(), definition, _postamble);
|
||||||
updateVersion(conn, 1);
|
updateVersion(conn, _schemaVersion);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user