2023_05_17_095512_alter_users_table.php
838 Bytes
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('users', function (Blueprint $table) {
$table->boolean('is_remove')->default(false);
$table->boolean('is_ban')->default(false);
$table->boolean('is_new')->default(true);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('users', function (Blueprint $table) {
$table->dropColumn('is_remove');
$table->dropColumn('is_ban');
$table->dropColumn('is_new');
});
}
};