#2118 - Generated code for @DbForeignKey reading onDelete and Ignores onUpdate

This commit is contained in:
rob bygrave committed 2020-12-01 22:04:07 +13:00
1 parent c66875449b
commit aa1e3ea1bc
2 files changed
+33 -2

No files matched your search

@@ -457,7 +457,7 @@ public class PlatformDdl {
protected void appendForeignKeySuffix(WriteForeignKey request, StringBuilder buffer) {
appendForeignKeyOnDelete(buffer, withDefault(request.onDelete()));
appendForeignKeyOnUpdate(buffer, withDefault(request.onDelete()));
appendForeignKeyOnUpdate(buffer, withDefault(request.onUpdate()));
}
protected ConstraintMode withDefault(ConstraintMode mode) {