mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 14:31:26 +00:00
39 lines
1 KiB
PHP
39 lines
1 KiB
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
class CreateCommentsTable extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('comments', function (Blueprint $table) {
|
|
$table->bigIncrements('id');
|
|
$table->bigInteger('profile_id')->unsigned();
|
|
$table->bigInteger('user_id')->unsigned()->nullable();
|
|
$table->bigInteger('status_id')->unsigned();
|
|
$table->text('comment')->nullable();
|
|
$table->text('rendered')->nullable();
|
|
$table->json('entities')->nullable();
|
|
$table->boolean('is_remote')->default(false);
|
|
$table->timestamp('rendered_at')->nullable();
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('comments');
|
|
}
|
|
}
|