Sindbad~EG File Manager

Current Path : /proc/self/cwd/common/Database/migrations/
Upload File :
Current File : //proc/self/cwd/common/Database/migrations/2015_04_127_156842_create_users_oauth_table.php

<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateUsersOauthTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('users_oauth', function(Blueprint $table)
		{
			$table->increments('id');
			$table->integer('user_id');
			$table->string('service');
			$table->string('token')->unique();
			$table->timestamps();

			$table->index('user_id');
			$table->unique(array('user_id', 'service'));

            $table->collation = config('database.connections.mysql.collation');
            $table->charset = config('database.connections.mysql.charset');
		});
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('users_oauth');
	}

}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists