for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Illuminate\Database\Capsule\Manager as Capsule;
use \Illuminate\Database\Schema\Blueprint as Blueprint;
class CreateCoachesTable
{
/**
* Run the migrations.
*
* @return void
*/
public function run()
Capsule::schema()->dropIfExists('coaches');
Capsule::schema()->create('coaches', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->string('surname');
$table->tinyInteger('age');
$table->string('nationality',2);
$table->float('skillAvg');
$table->float('wageReq');
$table->string('favouriteModule',10);
$table->integer('team_id')->nullable();
$table->timestamps();
});
}
* Reverse the migrations.
public function down()
Schema::drop('coaches');