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
Currently, it doesn't work because it references to items.id instead of items.item_code, after going over all docs - couldn't see any way to sett the name of the target column.
Am I missing something or this is a missing feature?
The text was updated successfully, but these errors were encountered:
Note: items.item_code must be a constraint on your items table and share the same datatype; in your case a varchar.
Ordinarily, you could also pass a Name object to references:
references: {schema: 'public',name: 'items'}
I was perusing the TypeScript code to see if it would accept any other keys, but it doesn't. It looks like expanding the Name object to include column (string)/columns (comma-delimited string or array of strings) may be worthwhile. Then, in a later breaking change, the name key should be renamed to table.
I have the following expression inside
createTable
:Currently, it doesn't work because it references to
items
.id
instead ofitems
.item_code
, after going over all docs - couldn't see any way to sett the name of the target column.Am I missing something or this is a missing feature?
The text was updated successfully, but these errors were encountered: