Created
November 15, 2016 19:58
-
-
Save lukepolo/dbddec33a9ab57645a13e0e4200dbb4b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Illuminate\Database\Migrations\Migration; | |
use Illuminate\Database\Schema\Blueprint; | |
class CreateUserProvidersTable extends Migration | |
{ | |
/** | |
* Run the migrations. | |
* | |
* @return void | |
*/ | |
public function up() | |
{ | |
Schema::create('user_login_providers', function (Blueprint $table) { | |
$table->increments('id'); | |
$table->string('provider'); | |
$table->string('provider_id'); | |
$table->string('token'); | |
$table->string('refresh_token')->nullable(); | |
$table->string('expires_in')->nullable(); | |
$table->string('tokenSecret')->nullable(); | |
$table->timestamps(); | |
$table->softDeletes(); | |
}); | |
} | |
/** | |
* Reverse the migrations. | |
* | |
* @return void | |
*/ | |
public function down() | |
{ | |
Schema::drop('user_login_providers'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment