Files
salt-minv-graph/database/migrations/2014_10_12_000000_create_users_table.php
Jaroslav Drzik 8caa7c227b Logging.php
- apc cache and insert to db
- seeder
- users table add columns
2019-11-21 11:17:01 +01:00

40 lines
871 B
PHP

<?php
use Illuminate\Support\Facades\Schema;
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');
$table->string('full_name');
$table->string('ou');
$table->rememberToken();
$table->timestamps();
$table->index([DB::raw('email(191)')]);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('users');
}
}