Skip to content

Commit

Permalink
Merge pull request pixelfed#1100 from pixelfed/frontend-ui-refactor
Browse files Browse the repository at this point in the history
Add new migration
  • Loading branch information
dansup authored Mar 31, 2019
2 parents ac53aea + 9914c61 commit f8b354a
Showing 1 changed file with 34 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddRepliesCountToStatusesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('statuses', function (Blueprint $table) {
$table->unsignedInteger('reply_count')->nullable();
$table->boolean('comments_disabled')->default(false);
});
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('statuses', function (Blueprint $table) {
$table->dropColumn('reply_count');
$table->dropColumn('comments_disabled');
});
}
}

0 comments on commit f8b354a

Please sign in to comment.