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 }}
This repository has been archived by the owner on Dec 10, 2018. It is now read-only.
Hi,
I am getting this error when running:
php artisan migrate:refresh --seed
. If I change back to normal ids I do not get this error.Full error:
Illuminate\Database\QueryException : SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint (SQL: alter table
invoicerowsadd constraint
invoicerows_invoice_id_foreignforeign key (
invoice_id) references
invoices(
id) on delete cascade)
My old migrations:
New migration after installing `spatie/laravel-binary-uuid':
When I now run
php artisan migrate:refresh --seed
I get that error.I have tried to add my original
id
field:$table->increments( 'id' );
but I suppose you do not need an id field anymore when using binary uuids?The text was updated successfully, but these errors were encountered: