Jump to content

how to make unique the combination of two fields

unique combination of two fields

  • Please log in to reply
No replies to this topic

#1 jloliva1984



  • Members
  • Pip
  • 1 posts

Posted 09 July 2018 - 01:01 PM

how to make unique the combination of two fields, example in a table with fields month, establishment, location, there can only be one record per establishment per month, something like $ crud-> unique_fields (array ('month', 'establishment')) ; but I think that in this way it verifies the fields separately, I need them to be unique the combination of both, thanks in advance


Also tagged with one or more of these keywords: unique, combination of two fields

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users