2 changed files with 30 additions and 1 deletions
@ -0,0 +1,29 @@ |
|||||
|
<?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('eliminado')->default(false); |
||||
|
}); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* Reverse the migrations. |
||||
|
*/ |
||||
|
public function down(): void |
||||
|
{ |
||||
|
Schema::table('users', function (Blueprint $table) { |
||||
|
$table->dropColumn('eliminado'); |
||||
|
}); |
||||
|
} |
||||
|
}; |
Loading…
Reference in new issue