From edbb4aed2cc4ba76265621fb03eeb6c5e9e22c88 Mon Sep 17 00:00:00 2001 From: toto Date: Fri, 10 Apr 2026 01:16:36 +0200 Subject: [PATCH] fix(import): add h2 columns with defaults for prod data missing 4 cols The prod data export was made before http/2 columns were added to http_logs (h2_fingerprint, h2_settings_fp, h2_window_update, h2_pseudo_order). The INSERT SELECT now provides empty/zero literals for those 4 columns so the 56-col Native export imports into the 60-col table without a column count mismatch. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- scripts/import-prod-data.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/import-prod-data.sh b/scripts/import-prod-data.sh index ac013d1..87c0203 100755 --- a/scripts/import-prod-data.sh +++ b/scripts/import-prod-data.sh @@ -148,7 +148,12 @@ SELECT header_content_type, header_x_request_id, header_x_trace_id, header_x_forwarded_for, header_sec_ch_ua, header_sec_ch_ua_mobile, header_sec_ch_ua_platform, header_sec_fetch_dest, header_sec_fetch_mode, header_sec_fetch_site, - anubis_bot_name, anubis_bot_action, anubis_bot_category + anubis_bot_name, anubis_bot_action, anubis_bot_category, + -- Colonnes h2 absentes des exports prod (ajoutées post-export) : valeurs vides par défaut + '' AS h2_fingerprint, + '' AS h2_settings_fp, + 0 AS h2_window_update, + '' AS h2_pseudo_order FROM ${STAGING_TABLE} "