for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateConfigurationFieldsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
Schema::create('configuration_fields', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->unsignedBigInteger('category_id');
$table->string('type');
$table->timestamps();
//fk
$table->foreign('category_id')->references('id')->on('categories');
});
}
* Reverse the migrations.
public function down()
Schema::dropIfExists('configuration_fields');