Issue
I had a migration with the following constraint:
$table->uuid('id')->primary();
is it possible to remove this primary() constraint in a following migration? I tried this:
$table->uuid('id')->change();
but it doesn't work. What's the recommended approach?
Solution
$table->dropPrimary( 'id' );
reference: https://laravel.com/docs/5.0/schema#dropping-indexes
Answered By - Marwane Ezzaze Answer Checked By - Pedro (PHPFixing Volunteer)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.