Fix bad API behavior

This commit is contained in:
Dane Everitt 2018-02-04 15:38:38 -06:00
parent d4d9eda57a
commit 2ec76d283b
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
10 changed files with 86 additions and 68 deletions

View file

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