mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-23 15:01:27 +00:00
38 lines
935 B
PHP
38 lines
935 B
PHP
|
<?php
|
||
|
|
||
|
use Illuminate\Support\Facades\Schema;
|
||
|
use Illuminate\Database\Schema\Blueprint;
|
||
|
use Illuminate\Database\Migrations\Migration;
|
||
|
|
||
|
class CreateCirclesTable extends Migration
|
||
|
{
|
||
|
/**
|
||
|
* Run the migrations.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function up()
|
||
|
{
|
||
|
Schema::create('circles', function (Blueprint $table) {
|
||
|
$table->bigIncrements('id');
|
||
|
$table->bigInteger('profile_id')->unsigned()->index();
|
||
|
$table->string('name')->nullable();
|
||
|
$table->text('description')->nullable();
|
||
|
$table->string('scope')->default('public');
|
||
|
$table->boolean('bcc')->default(false);
|
||
|
$table->boolean('active')->default(false)->index();
|
||
|
$table->timestamps();
|
||
|
});
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Reverse the migrations.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function down()
|
||
|
{
|
||
|
Schema::dropIfExists('circles');
|
||
|
}
|
||
|
}
|