tethys/database/migrations/2014_10_12_000000_create_users_table.php

37 lines
594 B
PHP
Raw Normal View History

2015-07-19 06:49:24 +00:00
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
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', 60);
$table->rememberToken();
2018-08-06 12:30:51 +00:00
$table->nullableTimestamps();
2015-07-19 06:49:24 +00:00
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('users');
}
}