Level 63
Well already found how to solve this.
I have to specify explicitely ->primary() for the primary key.
1 like
Hello,
I want to use Ulid for the primary key.
But when I create the relationship in the database (while migrating), I get an error.
Foreign key constraint is incorrectly formed
It's due to ->constrained().
How can I create a key contraint with foreignUlid() ? Is it even possible ?
What other solution do I have ?
Thanks for your help.
V
Well already found how to solve this.
I have to specify explicitely ->primary() for the primary key.
Please or to participate in this conversation.