Merge branch 'trunk'

This commit is contained in:
Olivier Legat 2021-09-29 17:37:59 +02:00
commit ed3b6c2e43
2 changed files with 36 additions and 0 deletions

View file

@ -61,6 +61,10 @@ class MesBR
$res = $this->callAPI("GET", "/updatebasket", $datas);
if (!$res) {
error_log("MESBR - CODE : 999 - MESSAGE : Cannot read API Response (non json)");
return ['status' => 'KO', 'code' => 999, 'message' => 'Cannot read API Response (non json)'];
}
if ($res->Statut === 'KO') {
error_log("MESBR - CODE : $res->Code - MESSAGE : $res->Message");
return ['status' => 'KO', 'code' => $res->Code, 'message' => $res->Message];

View file

@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class MakeInstantWinUniqueInParticipation extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('participation', function (Blueprint $table) {
$table->unique('instant_win_id');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('participation', function (Blueprint $table) {
//
});
}
}