Pony.fm/database/migrations/2013_09_01_025031_oauth.php

25 lines
604 B
PHP
Raw Normal View History

2015-08-30 14:29:12 +02:00
<?php
use Illuminate\Database\Migrations\Migration;
2015-08-31 14:35:47 +02:00
class Oauth extends Migration
{
public function up()
{
Schema::create('oauth2_tokens', function ($table) {
$table->increments('id');
$table->integer('user_id');
$table->integer('external_user_id');
$table->text('access_token');
$table->timestamp('expires');
$table->text('refresh_token');
$table->string('type');
$table->string('service');
});
}
2015-08-30 14:29:12 +02:00
2015-08-31 14:35:47 +02:00
public function down()
{
Schema::drop('oauth2_tokens');
}
2015-08-30 14:29:12 +02:00
}