1
0
Fork 0
forked from mirror/pixelfed
pixelfed/database/migrations/2018_08_22_022306_update_settings_table.php

36 lines
1,003 B
PHP
Raw Normal View History

<?php
use Illuminate\Database\Migrations\Migration;
2018-08-28 03:07:36 +00:00
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
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()
{
2018-08-28 03:07:36 +00:00
Schema::table('user_settings', function (Blueprint $table) {
2021-06-01 05:26:40 +00:00
$table->dropColumn(['show_profile_followers','show_profile_follower_count','show_profile_following','show_profile_following_count']);
2018-08-27 00:50:20 +00:00
});
}
}