Migration fixes
This commit is contained in:
parent
adae4da02f
commit
d70135b6af
1 changed files with 3 additions and 3 deletions
|
|
@ -368,9 +368,9 @@ return new class extends Migration
|
|||
} catch (\Exception) {
|
||||
throw new \Error("brand` {$brandName}` not found");
|
||||
}
|
||||
$url = $row->URL ? Str::of(url($row->URL))->lower() : null;
|
||||
$url = $row->URL ? Str::lower(url($row->URL)) : null;
|
||||
$date_saisie = $row->DATE_SAISIE ? $this->tryToParseCarbon($row->DATE_SAISIE, true) : null;
|
||||
$is_tasted = Str::of($row->DEGUSTER_O_N)->lower() === 'o' ? true : false;
|
||||
$is_tasted = Str::lower($row->DEGUSTER_O_N) === 'o' ? true : false;
|
||||
$claimList = collect([
|
||||
$row->ALLEG0, $row->ALLEG1, $row->ALLEG2
|
||||
])->filter()->map(fn (string $alleg) => $resolveAllegation($alleg));
|
||||
|
|
@ -669,7 +669,7 @@ return new class extends Migration
|
|||
$tableComment = "{$tableColumn->name} {$tableColumn->type} {$tableColumn->size}";
|
||||
switch ($tableColumn->type) {
|
||||
case 'NUMBER':
|
||||
$table->bigInteger($tableColumn->name)
|
||||
$table->double($tableColumn->name)
|
||||
->nullable()->comment($tableComment);
|
||||
break;
|
||||
case 'VARCHAR2':
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue