mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-10-23 19:00:38 +00:00
#323 - DDL Generation support for foreign key cascade options
Tidy up, no GLOBAL_DEFAULT.
This commit is contained in:
@@ -103,7 +103,7 @@
|
||||
<dependency>
|
||||
<groupId>io.ebean</groupId>
|
||||
<artifactId>ebean-annotation</artifactId>
|
||||
<version>3.7</version>
|
||||
<version>3.8</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
|
||||
@@ -389,7 +389,7 @@ public class PlatformDdl {
|
||||
}
|
||||
|
||||
protected ConstraintMode withDefault(ConstraintMode mode) {
|
||||
return (mode == null || mode == ConstraintMode.GLOBAL_DEFAULT) ? ConstraintMode.RESTRICT : mode;
|
||||
return (mode == null) ? ConstraintMode.RESTRICT : mode;
|
||||
}
|
||||
|
||||
protected void appendForeignKeyOnDelete(StringBuilder buffer, ConstraintMode mode) {
|
||||
|
||||
@@ -16,8 +16,8 @@ public class PropertyForeignKey {
|
||||
public PropertyForeignKey() {
|
||||
this.noConstraint = true;
|
||||
this.noIndex = false;
|
||||
this.onDelete = ConstraintMode.GLOBAL_DEFAULT;
|
||||
this.onUpdate = ConstraintMode.GLOBAL_DEFAULT;
|
||||
this.onDelete = ConstraintMode.RESTRICT;
|
||||
this.onUpdate = ConstraintMode.RESTRICT;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user