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 CreateGlossaryVariantsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
Schema::create('glossary_variants', function (Blueprint $table) {
$table->id();
$table->foreignId('glossary_id')->constrained()->onDelete('cascade');
$table->string('term')->nullable();
$table->integer('order')->nullable();
$table->timestamps();
});
}
* Reverse the migrations.
public function down()
Schema::dropIfExists('glossary_variants');