From c7db18cc86a70d7232222ce9f8e6e403763702be Mon Sep 17 00:00:00 2001 From: Application-drop-up Date: Mon, 4 May 2026 20:24:48 +0900 Subject: [PATCH] feat: persist main_image_url via ImportWorldHeritageSiteFromSplitFile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Map main_image_url from the split JSON onto the world_heritage_sites upsert payload so each imported site stores the hero image URL directly. The flush() method derives the upsert column list from the row's keys, so adding the field here is sufficient — no other mapping changes are required. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../Console/Commands/ImportWorldHeritageSiteFromSplitFile.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/Console/Commands/ImportWorldHeritageSiteFromSplitFile.php b/src/app/Console/Commands/ImportWorldHeritageSiteFromSplitFile.php index 2cbc12e..243f049 100644 --- a/src/app/Console/Commands/ImportWorldHeritageSiteFromSplitFile.php +++ b/src/app/Console/Commands/ImportWorldHeritageSiteFromSplitFile.php @@ -97,6 +97,7 @@ public function handle(): int 'longitude' => $this->toNullableFloat($row['longitude'] ?? null), 'short_description' => $this->toNullableString($row['short_description'] ?? null), 'unesco_site_url' => $this->toNullableString($row['unesco_site_url'] ?? null), + 'main_image_url' => $this->toNullableString($row['main_image_url'] ?? null), 'created_at' => $now, 'updated_at' => $now, ];