mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-23 06:51:27 +00:00
37 lines
1,003 B
PHP
37 lines
1,003 B
PHP
|
<?php
|
||
|
|
||
|
use Illuminate\Support\Facades\Schema;
|
||
|
use Illuminate\Database\Schema\Blueprint;
|
||
|
use Illuminate\Database\Migrations\Migration;
|
||
|
|
||
|
class UpdateSettingsTable extends Migration
|
||
|
{
|
||
|
/**
|
||
|
* Run the migrations.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function up()
|
||
|
{
|
||
|
Schema::table('user_settings', function (Blueprint $table) {
|
||
|
$table->boolean('show_profile_followers')->default(true);
|
||
|
$table->boolean('show_profile_follower_count')->default(true);
|
||
|
$table->boolean('show_profile_following')->default(true);
|
||
|
$table->boolean('show_profile_following_count')->default(true);
|
||
|
});
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Reverse the migrations.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function down()
|
||
|
{
|
||
|
$table->dropColumn('show_profile_followers');
|
||
|
$table->dropColumn('show_profile_follower_count');
|
||
|
$table->dropColumn('show_profile_following');
|
||
|
$table->dropColumn('show_profile_following_count');
|
||
|
}
|
||
|
}
|