log.error("Unable to add the relation \""+relName+"\"! One of the columns could not be found.");
continue;
}
// add the relation
DBRelation.DBReference reference = fkCol.referenceOn(pkCol);
DBRelation.DBReference[] refs = null;
DBRelation r = db.getRelation(relName);
if (r!=null) {
DBRelation.DBReference[] refsOld = r.getReferences();
refs = new DBRelation.DBReference[refsOld.length+1];