Added unique constraint in customer group code column
This commit is contained in:
parent
3ca4b48ac3
commit
352479912a
|
|
@ -14,7 +14,7 @@ class AddCodeColumnInCustomerGroupsTable extends Migration
|
|||
public function up()
|
||||
{
|
||||
Schema::table('customer_groups', function (Blueprint $table) {
|
||||
$table->string('code');
|
||||
$table->string('code')->unique();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue