Removed session ID

This commit is contained in:
Alex Bilbie 2014-08-04 18:53:44 +01:00
parent f046a024e4
commit cd60c2961f

View File

@ -165,11 +165,9 @@ print 'Creating refresh tokens table'.PHP_EOL;
Capsule::schema()->create('oauth_refresh_tokens', function ($table) { Capsule::schema()->create('oauth_refresh_tokens', function ($table) {
$table->string('refresh_token')->primary(); $table->string('refresh_token')->primary();
$table->integer('session_id');
$table->integer('expire_time'); $table->integer('expire_time');
$table->string('access_token'); $table->string('access_token');
$table->foreign('session_id')->references('id')->on('oauth_sessions')->onDelete('cascade');
$table->foreign('access_token')->references('id')->on('oauth_access_tokens')->onDelete('cascade'); $table->foreign('access_token')->references('id')->on('oauth_access_tokens')->onDelete('cascade');
}); });