-- Check if column exists in database SELECT column_name, data_type, is_nullable, column_default FROM information_schema.columns WHERE table_schema = 'public' AND table_name = 'platform_settings' ORDER BY ordinal_position;