[jOOQ/jOOQ#9425] Diff for cross schema FKs

In order to better reuse diff logic, the lambdas are now extracted as
members.
This commit is contained in:
Lukas Eder 2019-12-10 12:56:23 +01:00
parent 38cc7d4733
commit 94d2595130
2 changed files with 16 additions and 2 deletions

View File

@ -683,7 +683,7 @@ final class DDLInterpreter {
else if (impl.$unique() != null)
existing.uniqueKeys.add(new MutableUniqueKey((UnqualifiedName) impl.getUnqualifiedName(), existing, existing.fields(impl.$unique(), true)));
else if (impl.$foreignKey() != null)
addForeignKey(schema, existing, impl);
addForeignKey(getSchema(impl.$referencesTable().getSchema(), false), existing, impl);
else if (impl.$check() != null)
existing.checks.add(new MutableCheck((UnqualifiedName) impl.getUnqualifiedName(), existing, impl.$check()));
else
@ -1339,7 +1339,7 @@ final class DDLInterpreter {
@Override
public String toString() {
return name.toString();
return qualifiedName().toString();
}
}

View File

@ -711,6 +711,20 @@ package org.jooq.impl;