mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-08-28 13:12:05 +00:00
35 lines
751 B
PHP
35 lines
751 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
class CreateSocialAccountsTable extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('social_accounts', function (Blueprint $table) {
|
|
$table->increments('id');
|
|
$table->integer('user_id')->index();
|
|
$table->string('driver')->index();
|
|
$table->string('driver_id');
|
|
$table->string('avatar');
|
|
$table->nullableTimestamps();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::drop('social_accounts');
|
|
}
|
|
}
|