int oldVersion = db.getSchemaVersion();
// Find needed information fr DdlUtils
ConnectionRepository cr = MetadataManager.getInstance().connectionRepository();
PBKey connKey = cr.getStandardPBKeyForJcdAlias( "pv" );
JdbcConnectionDescriptor connDesc = cr.getDescriptor( connKey );
String jdbcDriver = connDesc.getDriver();
Platform platform = null;
if ( jdbcDriver.equals( "org.apache.derby.jdbc.EmbeddedDriver" ) ) {
platform = PlatformFactory.createNewPlatformInstance( "derby" );