Files
admin/database/migrations/2024_11_15_071656_update_users_table.php
Husanjonazamov e0f1989655 classify admin
2026-02-24 12:52:01 +05:00

31 lines
796 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('users', function (Blueprint $table) {
$table->boolean('show_personal_details')->default(1)->change();
$table->boolean('notification')->default(1)->change();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('users', function (Blueprint $table) {
$table->boolean('show_personal_details')->default(0);
$table->boolean('notification')->default(0);
});
}
};