osb/database/migrations/2017_06_18_104531_create_ab_oauth_table.php
2018-06-18 21:18:34 +10:00

39 lines
696 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateAbOauthTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('ab_oauth', function(Blueprint $table)
{
$table->integer('id');
$table->integer('site_id')->index('fk_o_set_idx');
$table->boolean('active')->nullable();
$table->string('name', 32);
$table->string('app_id', 128)->nullable();
$table->string('secret', 128)->nullable();
$table->primary(['id','site_id']);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('ab_oauth');
}
}