diff --git a/src/main/scala/org/orbeon/oxf/fr/persistence/relational/crud/CreateCols.scala b/src/main/scala/org/orbeon/oxf/fr/persistence/relational/crud/CreateCols.scala index 79673003ea..1d026f33b6 100644 --- a/src/main/scala/org/orbeon/oxf/fr/persistence/relational/crud/CreateCols.scala +++ b/src/main/scala/org/orbeon/oxf/fr/persistence/relational/crud/CreateCols.scala @@ -68,6 +68,11 @@ trait CreateCols extends RequestResponse with Common { } List( + Col( + included = false && req.forData && ! req.forAttachment, // Oracle + name = "id", + value = StaticColValue("orbeon_seq.NEXTVAL") + ), Col( included = true, name = "created",