Files
meet-hub/supabase/migrations/20251226_configure_trigger_settings.sql
dwindown 17440cdf89 Fix consulting order processing and display
- Fix consulting history to show continuous time range (09:00 - 11:00) instead of listing individual slots
- Add foreign key relationships for consulting_slots (order_id and user_id)
- Fix handle-order-paid to query profiles(email, name) instead of full_name
- Add completed consulting sessions with recordings to Member Access page
- Add user_id foreign key constraint to consulting_slots table
- Add orders foreign key constraint for consulting_slots relationship

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-27 01:17:47 +07:00

17 lines
746 B
SQL

-- Configure database settings for handle-order-paid trigger
-- These settings are required for the payment trigger to work
-- Set base URL (change if different)
DELETE FROM pg_settings WHERE name = 'app.base_url';
ALTER DATABASE postgres SET "app.base_url" = 'https://lovable.backoffice.biz.id';
-- Set service role key (you need to replace this with your actual service role key)
-- Get it from: Supabase Dashboard > Project Settings > API > service_role (confidential)
-- Uncomment and set the actual key:
-- ALTER DATABASE postgres SET "app.service_role_key" = 'YOUR_SERVICE_ROLE_KEY_HERE';
-- Verify settings
SELECT
current_setting('app.base_url', true) as base_url,
current_setting('app.service_role_key', true) as service_role_key;