Resolved: Need help with my multi column primary and foreign key table
Setup:
Hey I have created this table:
4 Replies
The first db push works fine.
On a second call without any changes it still tries to "alter" the table.
First db:push:
Second db:push:
Any suggestions?
I've tried defining the foreign key with the foreignKey function and directly in the schema field with
.references()
. Same result
Found the issue.
The columns need to be in the correct order.
So it worked as soon as I changed it to:
@Andrew Sherman is this intended behaviour or a bug?it's definitely a bug
it's great you found a workaround with columns order
but ideally kit should not detect a change
shall i open an issue?
I don't think sqlite have the same thing as mysql
where order matters
I would need to check that as well
would be perfect