framework icon indicating copy to clipboard operation
framework copied to clipboard

[9.x] Add ability to drop an index when modifying a column

Open hafezdivandari opened this issue 1 year ago • 0 comments

-> We can already chain an index method on the column definition to add an index:

$table->string('name')->unique();

-> We could also modify a column to drop its attribute, e.g. set not null:

$table->string('name')->nullable(false)->change();

This PR adds the ability to drop an index (by its conventional name) when modifying a column:

$table->string('name')->unique(false)->change();

hafezdivandari avatar Jan 05 '23 00:01 hafezdivandari