add duit pelanggan

This commit is contained in:
Hafifie PKB
2023-12-02 23:55:24 +08:00
parent 096025bcbc
commit b8b225a78e
5 changed files with 43 additions and 4 deletions
@@ -30,7 +30,7 @@ class AddColumnsToKomuditiTransaksi extends Migration
*/
public function down()
{
Schema::connection($this->getOnlineArrahConnection())->table('komuditi_transaksi', function (Blueprint $table){
Schema::connection($this->getOnlineArrahnConnection())->table('komuditi_transaksi', function (Blueprint $table){
$table->dropColumn('no_sijil_pelanggan');
$table->dropColumn('tan');
$table->dropColumn('harga');
@@ -0,0 +1,33 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddDuitpelangganToTransactionTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::connection('mysql7')->table('transaction', function (Blueprint $table) {
$table->decimal('duitpelanggan', 9, 2);
$table->decimal('bakipelanggan', 9, 2);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::connection('mysql7')->table('transaction', function (Blueprint $table) {
$table->dropColumn(['duitpelanggan','bakipelanggan']);
});
}
}