check method

SchemaUtils check(
  1. String condition
)

Add CHECK constraint

Adds a condition that must be true for all values in the column. condition should be a valid SQL expression.

Implementation

SchemaUtils check(String condition) {
  _constraints.add("CHECK ($condition)");
  return this;
}