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 CreateAssetPivotTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
Schema::create('asset_pivots', function (Blueprint $table) {
$table->integer('asset_id');
$table->integer('entity_id');
$table->string('entity_type');
$table->string('locale')->nullable();
$table->string('type')->nullable();
});
}
* Reverse the migrations.
public function down()
Schema::dropIfExists('asset_pivots');