0

Is there is a possibility to make SQL constraint for the boolean field? I want to make a constraint that will check all record and only 1 record can have boolean field checked

Chaban33
  • 1,362
  • 11
  • 38

1 Answers1

1

Try using this,

_sql_constrainst =[('your const. id', 'check(your_bool_field != Null)', 'Your validation msg')]