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;
class CreateUserStatsTable extends Migration
{
/**
* Run the migrations.
*/
public function up()
Schema::create('user_stats', function (Blueprint $table) {
$table->increments('id');
$table->integer('user_id')->unsigned()->nullable()->index('fk_user_stats_user_id_idx');
$table->integer('code_lines')->unsigned()->nullable();
$table->timestamps();
});
}
* Reverse the migrations.
public function down()
Schema::drop('user_stats');