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 CreateLevelsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
Schema::create('levels', function (Blueprint $table) {
$table->increments('id');
$table->string('name')->unique();
$table->string('label')->nullable();
$table->text('description')->nullable();
$table->integer('rank')->unsigned();
$table->timestamps();
$table->index('name');
$table->index('rank');
});
}
* Reverse the migrations.
public function down()
Schema::dropIfExists('levels');