BookStack/database/migrations/2015_09_04_165821_create_social_accounts_table.php

35 lines
737 B
PHP
Raw Normal View History

2015-09-04 19:40:36 +00:00
<?php
use Illuminate\Database\Migrations\Migration;
2021-06-26 15:23:15 +00:00
use Illuminate\Database\Schema\Blueprint;
2015-09-04 19:40:36 +00:00
return new class extends Migration
2015-09-04 19:40:36 +00:00
{
/**
* 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();
2015-09-04 19:40:36 +00:00
$table->string('driver_id');
$table->string('avatar');
2016-02-16 21:25:11 +00:00
$table->nullableTimestamps();
2015-09-04 19:40:36 +00:00
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('social_accounts');
}
};