Skip to content

Commit

Permalink
feat: EXPOSED-47 Add support for SET DEFAULT reference option
Browse files Browse the repository at this point in the history
  • Loading branch information
joc-a committed May 24, 2023
1 parent f030818 commit becf053
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ enum class ReferenceOption {
CASCADE,
SET_NULL,
RESTRICT,
NO_ACTION;
NO_ACTION,
SET_DEFAULT;

override fun toString(): String = name.replace("_", " ")

Expand All @@ -40,6 +41,7 @@ enum class ReferenceOption {
DatabaseMetaData.importedKeySetNull -> SET_NULL
DatabaseMetaData.importedKeyRestrict -> RESTRICT
DatabaseMetaData.importedKeyNoAction -> NO_ACTION
DatabaseMetaData.importedKeySetDefault -> SET_DEFAULT
else -> currentDialect.defaultReferenceOption
}
}
Expand Down

0 comments on commit becf053

Please sign in to comment.