2015-02-05 21:41:00 -06:00
|
|
|
<?php
|
2016-05-20 01:57:45 -05:00
|
|
|
declare(strict_types = 1);
|
|
|
|
|
|
|
|
|
2015-02-05 21:41:00 -06:00
|
|
|
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @SuppressWarnings(PHPMD.ShortMethodName)
|
2015-02-11 00:35:10 -06:00
|
|
|
*
|
2015-02-05 21:41:00 -06:00
|
|
|
* Class CreateUsersTable
|
|
|
|
*/
|
|
|
|
class CreateUsersTable extends Migration
|
|
|
|
{
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Reverse the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function down()
|
|
|
|
{
|
|
|
|
Schema::drop('users');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Run the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function up()
|
|
|
|
{
|
|
|
|
Schema::create(
|
|
|
|
'users', function (Blueprint $table) {
|
2015-02-11 00:35:10 -06:00
|
|
|
$table->increments('id');
|
|
|
|
$table->timestamps();
|
|
|
|
$table->string('email', 100)->unique();
|
|
|
|
$table->string('password', 60);
|
|
|
|
$table->rememberToken();
|
|
|
|
$table->string('reset', 32)->nullable();
|
|
|
|
}
|
2015-02-05 21:41:00 -06:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|