© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4mo ago•
5 replies
telesto🌛

List triggers and their content

Is there a way to edit/list triggers and their content? I've created one by using SQL as the UI is a bit limited
CREATE TRIGGER trigger_apply_discount
    AFTER UPDATE OF used, used_by_order ON discount_codes
    FOR EACH ROW
    WHEN (NEW.used = TRUE AND OLD.used = FALSE)
    EXECUTE FUNCTION apply_discount_to_order();
CREATE TRIGGER trigger_apply_discount
    AFTER UPDATE OF used, used_by_order ON discount_codes
    FOR EACH ROW
    WHEN (NEW.used = TRUE AND OLD.used = FALSE)
    EXECUTE FUNCTION apply_discount_to_order();
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Func and Triggers
SupabaseSSupabase / help-and-questions
4y ago
Postgres triggers
SupabaseSSupabase / help-and-questions
4y ago
triggers and functions behave like transactions?
SupabaseSSupabase / help-and-questions
4y ago
Professional user and their limitations
SupabaseSSupabase / help-and-questions
3w ago