Skip to content

Commit

Permalink
Merge branch 'migration-issue' into 'master'
Browse files Browse the repository at this point in the history
drop unique constraint from customers

See merge request mohit.panjvani/crater-web!1333
  • Loading branch information
mohitpanjwani committed Dec 9, 2021
2 parents 769e16c + 562dbfa commit 3af84ad
Showing 1 changed file with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class DropUniqueEmailOnCustomersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('customers', function (Blueprint $table) {
$table->dropUnique(['email']);
});
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}

0 comments on commit 3af84ad

Please sign in to comment.