Skip to content

Instantly share code, notes, and snippets.

@kejyun
Created January 26, 2015 14:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kejyun/d15aa99656c7e748921e to your computer and use it in GitHub Desktop.
Save kejyun/d15aa99656c7e748921e to your computer and use it in GitHub Desktop.
<?php
// app/database/migrations/2015_01_25_085024_create_pokemon_table.php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreatePokemonTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('pokemon', function(Blueprint $table)
{
// Auto increment
$table->increments('id');
$table->string('name' , 200);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('pokemon');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment