add my package section 2

This commit is contained in:
mahdi purHosseini
2023-10-23 13:30:47 +03:30
parent 644adb6528
commit 6b6bfebffa
5 changed files with 50 additions and 1 deletions
@@ -0,0 +1,32 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class UpdateItemsTable2 extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('items', function (Blueprint $table) {
$table->boolean('repair')->default(0);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('items', function (Blueprint $table) {
$table->dropColumn('repair');
});
}
}