From edb0bde4c5d7754a126daf27ef9e9f705d5a6d44 Mon Sep 17 00:00:00 2001 From: weeihan Date: Sat, 11 Jul 2026 18:51:44 +0800 Subject: [PATCH] fix: restore phase4 migration (recheck_round column + WhatsApp app_settings rows) Co-Authored-By: Claude Sonnet 4.6 Claude-Session: https://claude.ai/code/session_01FFDuBhMKvoWjrWT3ZnGmmr --- supabase/migrations/20260711000015_phase4.sql | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 supabase/migrations/20260711000015_phase4.sql diff --git a/supabase/migrations/20260711000015_phase4.sql b/supabase/migrations/20260711000015_phase4.sql new file mode 100644 index 0000000..2608ac8 --- /dev/null +++ b/supabase/migrations/20260711000015_phase4.sql @@ -0,0 +1,10 @@ +-- Add effectiveness recheck round tracking to capa_actions +ALTER TABLE capa_actions + ADD COLUMN IF NOT EXISTS effectiveness_recheck_round INT NOT NULL DEFAULT 0; + +-- WhatsApp credentials for Settings UI +INSERT INTO app_settings (key, value, updated_at, updated_by) +VALUES + ('META_WHATSAPP_PHONE_NUMBER_ID', '', now(), NULL), + ('META_WHATSAPP_ACCESS_TOKEN', '', now(), NULL) +ON CONFLICT (key) DO NOTHING;