Skip to content

Commit

Permalink
fix: drop webhooks request history on remote reset (#2892)
Browse files Browse the repository at this point in the history
  • Loading branch information
sweatybridge authored and avallete committed Nov 17, 2024
1 parent 893a405 commit 1681e66
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/migration/queries/drop.sql
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,13 @@ begin
execute format('drop table if exists %I.%I cascade', rec.relnamespace::regnamespace::name, rec.relname);
end loop;

-- truncate tables in auth and migrations schema
-- truncate tables in auth, webhooks, and migrations schema
for rec in
select *
from pg_class c
where
(c.relnamespace::regnamespace::name = 'auth' and c.relname != 'schema_migrations'
or c.relnamespace::regnamespace::name = 'supabase_functions' and c.relname != 'migrations'
or c.relnamespace::regnamespace::name = 'supabase_migrations')
and c.relkind = 'r'
loop
Expand Down

0 comments on commit 1681e66

Please sign in to comment.