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
it will be great if we will be able to support sth like this:
is_unique[t_handbook_subject.hsu_slug,hsu_id#hsu_lang,{hsu_id#hsu_lang}]
or at least sth like this: is_unique[t_handbook_subject.hsu_slug,CONCAT(`hsu_id`,'#',`hsu_lang`),{hsu_id#hsu_lang}]
... for tables where unique keys contains more than one field.
I know that this first idea how to do this is not smart enough... but i didn't think how to realize it in a good way yet.
Required changes:
passing entire row to is_unique method,
parsing is_unique rule.
The text was updated successfully, but these errors were encountered:
That becomes way too complex a function at that point. I agree that a custom rule is a better solution here, or simply a custom check in the model or wherever.
As for now is_unique supports only one column like this:
is_unique[t_handbook_subject.hsu_slug,hsu_id,{hsu_id}]
it will be great if we will be able to support sth like this:
is_unique[t_handbook_subject.hsu_slug,hsu_id#hsu_lang,{hsu_id#hsu_lang}]
or at least sth like this:
is_unique[t_handbook_subject.hsu_slug,CONCAT(`hsu_id`,'#',`hsu_lang`),{hsu_id#hsu_lang}]
... for tables where unique keys contains more than one field.
I know that this first idea how to do this is not smart enough... but i didn't think how to realize it in a good way yet.
Required changes:
The text was updated successfully, but these errors were encountered: