Add new migration

This commit is contained in:
Daniel Supernault 2018-09-09 22:43:06 -06:00
parent d90cfffa3f
commit 16399e93fb
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -0,0 +1,33 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class UpdateImportDatasTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('import_datas', function (Blueprint $table) {
$table->bigInteger('job_id')->unsigned()->nullable()->after('profile_id');
$table->string('original_name')->nullable()->after('stage');
$table->boolean('import_accepted')->default(false)->nullable()->after('original_name');
$table->unique(['job_id', 'original_name']);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}