Compare commits
2 Commits
c9e44266f8
...
5b034688a7
Author | SHA1 | Date |
---|---|---|
|
5b034688a7 | 5 months ago |
|
523df43f31 | 5 months ago |
3 changed files with 40 additions and 5 deletions
@ -0,0 +1,28 @@ |
|||||
|
<?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('capacidades', function (Blueprint $table) { |
||||
|
$table->boolean('eliminado')->default(false); |
||||
|
}); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* Reverse the migrations. |
||||
|
*/ |
||||
|
public function down(): void |
||||
|
{ |
||||
|
Schema::table('capacidades', function (Blueprint $table) { |
||||
|
$table->dropColumn('eliminado'); |
||||
|
}); |
||||
|
} |
||||
|
}; |
Loading…
Reference in new issue