Naming a not null constraint

Is there a way to specify a name for a NOT NULL constraint?

Neither addNotNullConstraint nor the constraints tag seem to support an attribute that could specify such a name.

Is this planned or maybe part of 2.0 (I’m using 1.9.5)

There is not a way currently to set the name of the not null constraint.

I created an issue to track the request ( and will look into it for 2.1

For now, you’ll have to use the tag if you want to name your not null constraints or use the modifySql tag


OK, thanks for the answer

I just saw the comment in the Jira issue about the node
I think this should also be possible within the tag

Good point  I’ll add that