[jOOQ/jOOQ#681] [jOOQ/jOOQ#10230] Interpreter support for DOMAINS (WIP)
This change includes: - Support interpreting DROP DOMAIN .. CASCADE
This commit is contained in:
parent
e8c7e5e423
commit
c1cdf24406
@ -1044,6 +1044,9 @@ final class Interpreter {
|
||||
if (!TRUE.equals(query.$cascade()) && !existing.fields.isEmpty())
|
||||
throw new DataDefinitionException("Domain " + domain.getQualifiedName() + " is still being referenced by fields.");
|
||||
|
||||
for (MutableField mf : new ArrayList<>(existing.fields))
|
||||
dropColumns(mf.table, existing.fields, CASCADE);
|
||||
|
||||
schema.domains.remove(existing);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user