tambah condition tagujrah masa nak export data

This commit is contained in:
BTMS2
2024-07-15 08:20:56 +08:00
parent 0d9a23a43f
commit 046ecc50d8
2 changed files with 69 additions and 15 deletions
@@ -0,0 +1,36 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddTagUjrahInLelongbidxlaku extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('lelongbid_xlaku', function (Blueprint $table) {
$table->integer('tagujrah')->default(0);
$table->decimal('ujrah', 5, 2);
$table->decimal('onepercent', 5, 2);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('lelongbid_xlaku', function (Blueprint $table) {
$table->dropColumn('tagujrah');
$table->dropColumn('ujrah');
$table->dropColumn('onepercent');
});
}
}