This commit is contained in:
Dane Everitt 2018-02-10 15:58:34 -06:00
parent e22d824c2d
commit c3dc376c4c
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53

View file

@ -0,0 +1,32 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class RemoveUniqueIndexOnExternalIdColumn extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('users', function (Blueprint $table) {
$table->dropUnique(['external_id']);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('users', function (Blueprint $table) {
$table->unique(['external_id']);
});
}
}