Re: Microsoft Access migration: Referential Integrity
Thanks for your quick response! :)
I editted MigrationGeneric.java, method migrationForeignKeyToMysql, changing:
if ((overrideRules != null)
&& (overrideRules.compareToIgnoreCase("yes") == 0)) {
targetForeignKey.setDeleteRule(migrationParams
.get("defaultDeleteRule"));
targetForeignKey.setUpdateRule(migrationParams
.get("defaultUpdateRule"));
}
to
if ((overrideRules != null)
&& (overrideRules.compareToIgnoreCase("yes") == 0)) {
targetForeignKey.setDeleteRule(migrationParams
.get("defaultDeleteRule"));
targetForeignKey.setUpdateRule(migrationParams
.get("defaultUpdateRule"));
} else {
targetForeignKey.setDeleteRule(sourceForeignKey.getDeleteRule());
targetForeignKey.setUpdateRule(sourceForeignKey.getUpdateRule());
}
and now it works! :^)
Thanks again,
Scott.
Subject
Written By
Posted
Re: Microsoft Access migration: Referential Integrity
June 21, 2005 11:54AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.