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 CreateFAQSTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
Schema::create('fg_f_a_q_s', function (Blueprint $table) {
$table->string('id', 150)->primary();
$table->enum('category', ['website', 'app', 'channel', 'general'])->default('general');
$table->string('question');
$table->text('answer');
$table->timestamps();
});
}
* Reverse the migrations.
public function down()
Schema::dropIfExists('fg_f_a_q_s');