/home/mip/mip/database/migrations/likod/2014_10_12_000000_create_users_table.php
<?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->engine = 'MYISAM';
$table->increments('id');
$table->integer('role_id')->unsigned()->index();
$table->string('name');
$table->string('display_name');
$table->string('email');
$table->string('password', 60);
$table->string('photo');
$table->rememberToken();
$table->timestamps();
});
DB::table('users')->insert([
[
'id'=> 1,
'role_id' => 1,
'name' => 'Support Team',
'display_name' => 'Support Team',
'email' => 'support@quantumx.com',
'password' => bcrypt('qx@dev'),
'created_at' => new \Carbon\Carbon,
'updated_at' => new \Carbon\Carbon
],
]);
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('users');
}
}