Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
DBUtil: Possible to Make SQL Check Constraints?
I have looked over the documentation and poked through the DBUtil file and files it calls. So, I am pretty sure the answer is that it isn't supported, but wanted to ask here in case I was missing it.
Is it possible to add SQL check constraints to fields using anything in DBUtil. I know that foreign key and unique constraints are possible, and there's constraints you can put on the ORM Model and the related forms to limit what values can appear in them. But I was wondering if Fuel offers a way to add those constraints at the DB level as well.
Thanks in advance!
Indeed, not supported.
The big challenge is to find a portable way of implementing them, which isn't easy with low-level stuff like this.
Thanks for the quick response!
Add a Comment
It looks like you're new here. If you want to get involved, click one of these buttons!
Apply for Membership
↳ Job Board
↳ Installation & Setup
↳ Tips and Tutorials
↳ Code share
In this Discussion