for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateReportsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
Schema::create('reports', function (Blueprint $table) {
$table->increments('id');
$table->string('class_name')->unique()->index();
$table->enum('status', ['error', 'process', 'completed', 'new', 'worker'])->default('new');
$table->boolean('is_completed')->comment('Check read or not')->default(false);
$table->integer('pid')->nullable()->comment('pid process');
$table->timestamps();
});
}
* Reverse the migrations.
public function down()
Schema::dropIfExists('reports');