From d70135b6af7e6dc7a4950302a67ce27cf5f2ccbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Mon, 2 Oct 2023 16:00:50 +0200 Subject: [PATCH] Migration fixes --- .../migrations/2023_12_06_124752_migrate_oci_tables.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/database/migrations/2023_12_06_124752_migrate_oci_tables.php b/database/migrations/2023_12_06_124752_migrate_oci_tables.php index be8c442..0fffcd8 100644 --- a/database/migrations/2023_12_06_124752_migrate_oci_tables.php +++ b/database/migrations/2023_12_06_124752_migrate_oci_tables.php @@ -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':