if (!columnExists) {
db.addColumn(connection, "RHQ_STORAGE_NODE", "VERSION", "VARCHAR2", "255");
preparedStatement = connection.prepareStatement("UPDATE RHQ_STORAGE_NODE SET VERSION = ?");
preparedStatement.setString(1, "PRE-" + version);
preparedStatement.executeUpdate();
db.closeStatement(preparedStatement);
// set column not null after it's been set
db.alterColumn(connection, "RHQ_STORAGE_NODE", "VERSION", "VARCHAR2", null, "255", false, false);
return true;
}
} finally {