DONE: add accumulated amount display

This commit is contained in:
ISMAIL MASSERAN
2026-05-18 11:52:32 +08:00
parent e8d4f03627
commit fe9223cae1
11 changed files with 482 additions and 242 deletions
+1 -1
View File
@@ -1 +1 @@
*.sqlite
*.sqlite
@@ -0,0 +1,32 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddAccumulatedAmountToVoterTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('voter', function (Blueprint $table) {
$table->decimal('accumulated_amount', 12, 2)->default(0)->after('pelaburan');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('voter', function (Blueprint $table) {
$table->dropColumn('accumulated_amount');
});
}
}
File diff suppressed because it is too large Load Diff