add aditional fields in nh_networks_configs table
This commit is contained in:
parent
575d74bc02
commit
76647c7c4f
|
|
@ -573,7 +573,7 @@ INNER JOIN countries c ON oc.id_country = c.id INNER JOIN type_operators top ON
|
|||
$user_banking_account_verif->save();
|
||||
|
||||
// Envoyer une requete vers la banque contant ses informations personnelles pour verfication du code iban
|
||||
Log::info('-------------------------- User - Rattacher le compte bancaire au wallet ------------------------------------');
|
||||
Log::info('-------------------------- User - Rattacher le compte bancaire au wallet --------------------------');
|
||||
Log::info(json_encode(
|
||||
array_merge($request->toArray(), $identification->toArray(), ['id_transaction' => $user_banking_account_verif->id_transaction])
|
||||
));
|
||||
|
|
@ -709,7 +709,7 @@ INNER JOIN countries c ON oc.id_country = c.id INNER JOIN type_operators top ON
|
|||
}
|
||||
}
|
||||
$bank_name = $network_bank->operators_country->operator->nom;
|
||||
|
||||
|
||||
$bankAccount = new UserBankAccount();
|
||||
$bankAccount->id_user = $user->id;
|
||||
$bankAccount->id_operator_country = $request->id_operator;
|
||||
|
|
|
|||
|
|
@ -0,0 +1,46 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class AddAffectionFieldsToNhNetworksConfigsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('nh_networks_configs', function (Blueprint $table) {
|
||||
$table->decimal('long_term_affection_percentage_insurer', 5, 2)->default(0)->after('percentage_insured');
|
||||
$table->decimal('long_term_affection_percentage_insured', 5, 2)->default(0)->after('long_term_affection_percentage_insurer');
|
||||
|
||||
$table->decimal('current_affection_percentage_insurer', 5, 2)->default(0)->after('long_term_affection_percentage_insured');
|
||||
$table->decimal('current_affection_percentage_insured', 5, 2)->default(0)->after('current_affection_percentage_insurer');
|
||||
|
||||
$table->decimal('exoneration_percentage_insurer', 5, 2)->default(0)->after('current_affection_percentage_insured');
|
||||
$table->decimal('exoneration_percentage_insured', 5, 2)->default(0)->after('exoneration_percentage_insurer');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('nh_networks_configs', function (Blueprint $table) {
|
||||
$table->dropColumn([
|
||||
'long_term_affection_percentage_insurer',
|
||||
'long_term_affection_percentage_insured',
|
||||
'current_affection_percentage_insurer',
|
||||
'current_affection_percentage_insured',
|
||||
'exoneration_percentage_insurer',
|
||||
'exoneration_percentage_insured'
|
||||
]);
|
||||
});
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue