Skip to content

Instantly share code, notes, and snippets.

@lukepolo
Created November 15, 2016 19:58
Show Gist options
  • Save lukepolo/80f72aa4d1513ff430e03924a660c0c4 to your computer and use it in GitHub Desktop.
Save lukepolo/80f72aa4d1513ff430e03924a660c0c4 to your computer and use it in GitHub Desktop.
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('users', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->string('email')->unique();
$table->string('password')->nullable();
$table->string('user_login_provider_id');
$table->rememberToken();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('users');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment