You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add fluent Table API for check constraints (#1052)
* Add fluent Table API for check constraints
Add addCheckConstraint() and dropCheckConstraint() methods to the Table
class, allowing users to manage check constraints using the same fluent
API pattern used for indexes and foreign keys.
The adapter already had the underlying implementation, this adds:
- AddCheckConstraint action class
- DropCheckConstraint action class
- Table::addCheckConstraint() method
- Table::dropCheckConstraint() method
- Table::hasCheckConstraint() method
- Plan.php updated to handle check constraint actions
- Unit tests for the new methods
* docs: Fix check constraint API examples
Update examples to use the correct API signature:
- addCheckConstraint($expression, $options) not addCheckConstraint($name, $expression)
- Replace non-existent checkConstraint() fluent builder with CheckConstraint object
- Fix all examples throughout the check constraints section
0 commit comments