diff --git a/database/migrations/2023_08_14_124752_migrate_oci_tables.php b/database/migrations/2023_08_14_124752_migrate_oci_tables.php index b65e0e9..45d5779 100644 --- a/database/migrations/2023_08_14_124752_migrate_oci_tables.php +++ b/database/migrations/2023_08_14_124752_migrate_oci_tables.php @@ -303,7 +303,10 @@ return new class extends Migration $claim = null; if ($row->COMP_ALLEG) { try { - $claim = $resolveAllegation($row->COMP_ALLEG); + if (!$resolveAllegation($row->COMP_ALLEG)->equals(ClaimEnum::others)) { + throw new \Error("`{$row->COMP_ALLEG}` is not resolved as `other`"); + } + $claim = $row->COMP_ALLEG; } catch (\Exception) { throw new \Error("`{$row->COMP_ALLEG}` not found"); }