mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-27 15:33:17 +00:00
49 lines
1.7 KiB
PHP
49 lines
1.7 KiB
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
class CreateStatusesTable extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('statuses', function (Blueprint $table) {
|
|
$table->bigIncrements('id');
|
|
$table->string('uri')->nullable();
|
|
$table->string('caption')->nullable();
|
|
$table->text('rendered')->nullable();
|
|
$table->bigInteger('profile_id')->unsigned()->nullable();
|
|
$table->bigInteger('in_reply_to_id')->unsigned()->nullable();
|
|
$table->bigInteger('reblog_of_id')->unsigned()->nullable();
|
|
$table->string('url')->nullable();
|
|
$table->boolean('is_nsfw')->default(false);
|
|
$table->enum('visibility', ['public', 'unlisted', 'private', 'direct'])->default('public');
|
|
$table->boolean('reply')->default(false);
|
|
$table->bigInteger('likes_count')->unsigned()->default(0);
|
|
$table->bigInteger('reblogs_count')->unsigned()->default(0);
|
|
$table->string('language')->nullable();
|
|
$table->bigInteger('conversation_id')->unsigned()->nullable();
|
|
$table->boolean('local')->default(true);
|
|
$table->bigInteger('application_id')->unsigned()->nullable();
|
|
$table->bigInteger('in_reply_to_profile_id')->unsigned()->nullable();
|
|
$table->json('entities')->nullable();
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('statuses');
|
|
}
|
|
}
|