for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\Schema;
class CreateGamesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
Schema::create('games', function(Blueprint $table) {
$table->increments('id');
$table->string('name', 128);
$table->smallInteger('version_ios')->unsigned()->default('100');
$table->smallInteger('version_android')->unsigned()->default('100');
$table->smallInteger('version_tvos')->unsigned()->default('100');
$table->timestamps();
});
}
* Reverse the migrations.
public function down()
Schema::dropIfExists('games');