mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 14:31:26 +00:00
41 lines
1.1 KiB
PHP
41 lines
1.1 KiB
PHP
|
<?php
|
||
|
|
||
|
use Illuminate\Support\Facades\Schema;
|
||
|
use Illuminate\Database\Schema\Blueprint;
|
||
|
use Illuminate\Database\Migrations\Migration;
|
||
|
|
||
|
class CreateProfilesTable extends Migration
|
||
|
{
|
||
|
/**
|
||
|
* Run the migrations.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function up()
|
||
|
{
|
||
|
Schema::create('profiles', function (Blueprint $table) {
|
||
|
$table->increments('id');
|
||
|
$table->unsignedInteger('user_id')->nullable();
|
||
|
$table->string('username')->nullable()->unique()->index();
|
||
|
$table->string('name')->nullable();
|
||
|
$table->string('bio', 150)->nullable();
|
||
|
$table->string('location')->nullable();
|
||
|
$table->string('website')->nullable();
|
||
|
$table->string('remote_url')->nullable();
|
||
|
$table->text('keybase_proof')->nullable();
|
||
|
$table->boolean('is_private')->default(false);
|
||
|
$table->timestamps();
|
||
|
});
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Reverse the migrations.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function down()
|
||
|
{
|
||
|
Schema::dropIfExists('profiles');
|
||
|
}
|
||
|
}
|