Replies: 2 comments 1 reply
-
Hi @TPausL in order to do what you want, you would need to add a separate UNIQUE index for each key! |
Beta Was this translation helpful? Give feedback.
1 reply
-
As far as I can tell this already works in version 2.0 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How would I create an index which ensures that the combination of 2 keys is unique?
DEFINE INDEX test_index ON TABLE test COLUMNS prop_one,prop_two UNIQUE;
ensures that prop_one and prop_two are unique on their own so you can't create records likeprop_one = hello, prop_two = bye
prop_one = hello, prop_two = hello
i would like to be able to create those two but not two of the same
Beta Was this translation helpful? Give feedback.
All reactions