pixelfed/database/migrations/2018_06_22_062621_create_re...

36 lines
831 B
PHP
Raw Normal View History

2018-07-18 00:03:39 +00:00
<?php
use Illuminate\Database\Migrations\Migration;
2018-08-28 03:07:36 +00:00
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
2018-07-18 00:03:39 +00:00
class CreateReportCommentsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('report_comments', function (Blueprint $table) {
$table->increments('id');
$table->bigInteger('report_id')->unsigned()->index();
$table->bigInteger('profile_id')->unsigned();
$table->bigInteger('user_id')->unsigned();
$table->text('comment');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('report_comments');
}
}