From 73ea1b03f3848735755f073b8229b36333095dba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Sat, 8 Aug 2026 16:07:06 +0200 Subject: [PATCH] fix(scripts): drop the retired research-mode columns from the demo rebuild MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The demo edge01 rebuild copies the users table by an explicit column list, and three of the names in it — research_mode_enabled and its two acknowledgment stamps — were dropped from the schema when Research Mode was retired. The COPY and its matching SELECT both targeted columns that no longer exist, so the rebuild would fail on the first users row. Removed from both lists, which stay aligned. --- scripts/migrate-demo-edge01.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/scripts/migrate-demo-edge01.sh b/scripts/migrate-demo-edge01.sh index 76dc3e1c0..4ecf556c3 100755 --- a/scripts/migrate-demo-edge01.sh +++ b/scripts/migrate-demo-edge01.sh @@ -325,7 +325,6 @@ readonly USERS_COLS="id, username, email, password_hash, role, created_at, updat onboarding_completed_at, onboarding_step, onboarding_tour_completed, healthkit_config_json, healthkit_last_synced_at, display_name, last_report_practice_name, coach_prefs_json, source_priority_json, - research_mode_enabled, research_mode_acknowledged_at, research_mode_acknowledged_version, last_synced_at, mood_reminder_enabled, doctor_report_prefs_json, notification_prefs, disable_coach, avatar_bytes, avatar_content_type, avatar_updated_at, full_name, insurer_name, insurance_number_encrypted, insurer_ik_number" @@ -366,7 +365,6 @@ readonly USERS_SELECT="id, username, email, password_hash, onboarding_completed_at, onboarding_step, onboarding_tour_completed, healthkit_config_json, healthkit_last_synced_at, display_name, last_report_practice_name, coach_prefs_json, source_priority_json, - research_mode_enabled, research_mode_acknowledged_at, research_mode_acknowledged_version, last_synced_at, mood_reminder_enabled, doctor_report_prefs_json, notification_prefs, disable_coach, avatar_bytes, avatar_content_type, avatar_updated_at, full_name,