update tagujrah dalam existing record lelong lama dan lain2

This commit is contained in:
BTMS2
2024-09-06 15:54:51 +08:00
parent 178a5a2845
commit c49d63ec7c
13 changed files with 78 additions and 43 deletions
@@ -0,0 +1,33 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddTagujrahInCawanganTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('cawangan', function (Blueprint $table) {
$table->integer('tagujrah')->default(0);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('cawangan', function (Blueprint $table) {
$table->dropColumn('tagujrah');
});
}
}