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
{{ message }}
Repository navigation
queryInterface.createTable: "uniqueKeys" option does not work anymore #9041
Activity
sushantdhiman commentedon Feb 13, 2018
For now you can fix this by setting
customIndex: trueSimonSchick commentedon Mar 13, 2018
I just traced this down as well: #9041
Can you please mark this as a breaking change?
This caused us quite some headache today.
sushantdhiman commentedon Mar 13, 2018
Yes, I am aware this was an unintentional breaking change. I was simply not aware that
uniqueKeyswas still used.I will try to come up with a solution to make this non breaking
SimonSchick commentedon Mar 13, 2018
@sushantdhiman Are you suggesting
uniqueKeysshouldn't be used? Is there a better way to define unique keys, maybe via attributes increateTable?sushantdhiman commentedon Mar 13, 2018
It seems there is no API other than
uniqueKeysalthoughindexesshould be available oncreateTable, making this a breaking change.But I can't revert that fix. So as I said I will try to come up with a strategy to keep that fix while making it a non breaking
SimonSchick commentedon Mar 13, 2018
I came up with:
Do you think this will have any side unwanted side effects?
sushantdhiman commentedon Mar 13, 2018
@SimonSchick Looks good, I see no potential issues with this patch
SimonSchick commentedon Apr 29, 2018
@sushantdhiman have you had any time to apply my
patchto the code base?SimonSchick commentedon Sep 17, 2018
poke, this is still kind of un-intuitive
TannerS commentedon Jul 26, 2024
sorry for bringing up an old thread, what does
customIndexactually mean/do?