DONE: add dividen for yuran and saham by injecting json

This commit is contained in:
ISMAIL MASSERAN
2026-06-23 13:12:33 +08:00
parent 8bbd64a91f
commit 11cbededf6
9 changed files with 3374 additions and 6 deletions
@@ -0,0 +1,33 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddDividenSahamAndDividenYuranToVoterTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('voter', function (Blueprint $table) {
$table->decimal('dividen_saham', 12, 2)->default(0)->after('yuran');
$table->decimal('dividen_yuran', 12, 2)->default(0)->after('dividen_saham');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('voter', function (Blueprint $table) {
$table->dropColumn(['dividen_saham', 'dividen_yuran']);
});
}
}
File diff suppressed because it is too large Load Diff