Skip to content

fix: drop broken search_path functions#2695

Merged
baderdean merged 4 commits intomainfrom
fix/search-path-errors
Mar 5, 2026
Merged

fix: drop broken search_path functions#2695
baderdean merged 4 commits intomainfrom
fix/search-path-errors

Conversation

@baderdean
Copy link
Member

Summary

  • Fixes the broken migration 20260302000000 that tried to alter functions that don't exist
  • Drops unused contact_temperature_v2-v9 functions
  • Uses DO blocks to handle missing functions gracefully

Issue

Migration 20260302000000 fails with "must be owner of function" errors because it tries to alter functions that don't exist in the database.

Use a frontend constant for senderDailyLimit default and stop overriding
it from sender-options payload. Also render toast CTA on a new line under
the message text.
- Add SET search_path = '' to application-owned functions only
- Use DO block for invoke_edge_function to handle missing function gracefully
- Functions fixed: trg_set_contact_temperature, get_mining_source_overview,
  get_passive_mining_ids, get_distinct_or_exclude_from_array, get_mining_stats,
  delete_old_pst_files, update_updated_at_column
- Excludes: public.invoke_url (extension), contact_temperature_v* (don't exist),
  contact_temperature (may not be owned)
@baderdean baderdean merged commit 1fac4e9 into main Mar 5, 2026
10 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant