migrations/2018_09_04_161008_add_process_stamps_table.php
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddProcessStampsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create(config('process-stamps.table'), function (Blueprint $table) {
$table->increments('id');
$table->string('type', 10)->index();
$table->text('name');
$table->char('hash', 40)->unique();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists(config('process-stamps.table'));
}
}