fix autotawarruq and imbangduga
This commit is contained in:
@@ -62,9 +62,11 @@ class AddOnepercentToGadaiTable extends Migration
|
||||
$db_connection = $this->getActiveDB();
|
||||
|
||||
foreach($db_connection as $dbase){
|
||||
Schema::connection($dbase)->table('gadai', function (Blueprint $table) {
|
||||
$table->dropColumn(['kadarujrah', 'ujrah', 'onepercent','margin_semasa','tagbaru']);
|
||||
});
|
||||
if (Schema::connection('mysql7')->hasColumn('ujrah', 'onepercent')){
|
||||
Schema::connection($dbase)->table('gadai', function (Blueprint $table) {
|
||||
$table->dropColumn(['kadarujrah', 'ujrah', 'onepercent','margin_semasa','tagbaru']);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+6
-3
@@ -21,6 +21,7 @@ class AddOnepercentToTransactionKeuntunganTable extends Migration
|
||||
$table->decimal('tempoh', 5, 2);
|
||||
$table->decimal('beza_tempoh', 5, 2);
|
||||
$table->decimal('margin_semasa', 5, 2);
|
||||
$table->decimal('rounded', 5, 2);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -31,8 +32,10 @@ class AddOnepercentToTransactionKeuntunganTable extends Migration
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::connection('mysql7')->table('transaksi_keuntungan', function (Blueprint $table) {
|
||||
$table->dropColumn(['ujrah', 'ujrah_rebet', 'onepercent', 'onepercent_rebet', 'tempoh', 'beza_tempoh', 'margin_semasa']);
|
||||
});
|
||||
if (Schema::connection('mysql7')->hasColumn('ujrah', 'onepercent')){
|
||||
Schema::connection('mysql7')->table('transaksi_keuntungan', function (Blueprint $table) {
|
||||
$table->dropColumn(['ujrah', 'ujrah_rebet', 'onepercent', 'onepercent_rebet', 'tempoh', 'beza_tempoh', 'margin_semasa','rounded']);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -57,9 +57,11 @@ class AddOnepercentToTebusTable extends Migration
|
||||
$db_connection = $this->getActiveDB();
|
||||
|
||||
foreach($db_connection as $dbase){
|
||||
Schema::connection($dbase)->table('tebus', function (Blueprint $table) {
|
||||
$table->dropColumn(['ujrah', 'onepercent']);
|
||||
});
|
||||
if (Schema::connection($dbase)->hasColumn('ujrah', 'onepercent')){
|
||||
Schema::connection($dbase)->table('tebus', function (Blueprint $table) {
|
||||
$table->dropColumn(['ujrah', 'onepercent']);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ class AddColumnsToKomuditiTransaksi extends Migration
|
||||
{
|
||||
$online_arrahn_connection_array = array_filter(config('database.connections'), function($connection) {
|
||||
|
||||
if($connection['database'] === 'online_arrahn' || $connection['database'] === 'master_krk'){
|
||||
if($connection['database'] === 'online_arrahn2' || $connection['database'] === 'master_krk'){
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user