Skip to content

Instantly share code, notes, and snippets.

@mattaebersold
Created May 26, 2016 21:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mattaebersold/5eacba4e89a03cc1d158e3c70b437a20 to your computer and use it in GitHub Desktop.
Save mattaebersold/5eacba4e89a03cc1d158e3c70b437a20 to your computer and use it in GitHub Desktop.
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateHistoriesTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
//
Schema::create('histories', function($t){
$t->increments('id');
$t->string('title');
$t->string('team_1');
$t->string('team_1_score');
$t->string('team_2');
$t->string('team_2_score');
$t->date('date');
$t->integer('position');
$t->boolean('visible')->nullable()->index();
$t->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
Schema::drop('histories');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment