Skip to content

Instantly share code, notes, and snippets.

@DvdQzd
Last active May 8, 2018 13:41
Show Gist options
  • Save DvdQzd/7335743b397cb06b124ea28cabd8e57d to your computer and use it in GitHub Desktop.
Save DvdQzd/7335743b397cb06b124ea28cabd8e57d to your computer and use it in GitHub Desktop.
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateTablePokemons extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('pokemons', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('pokemons');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment