Skip to content

Instantly share code, notes, and snippets.

@mahardianto
Created February 28, 2017 04:56
Show Gist options
  • Save mahardianto/16ab36790ffdb4ee929d085cf63924fe to your computer and use it in GitHub Desktop.
Save mahardianto/16ab36790ffdb4ee929d085cf63924fe 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 CreateFlightsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('people', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->string('kelamin');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('people');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment