Skip to content

Commit

Permalink
fix(kilobase): user_card sql drops were out of order.
Browse files Browse the repository at this point in the history
  • Loading branch information
h0lybyte committed Nov 10, 2024
1 parent 19c8e73 commit 819a360
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion apps/kbve.com/src/content/journal/11-10.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,6 @@ import { Adsense, Tasks } from '@kbve/astropad';

```

Then we can update the command to just handle these directly for us.
Then we can update the command to just handle these directly for us.
Oh I made another silly mistake, I have to drop the triggers first then the functions!
Let me go ahead and fix that up really quick.
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
BEGIN;

-- Drop older trigger and function
-- Drop the triggers first
DROP TRIGGER IF EXISTS on_auth_new_card_created ON auth.users;
DROP TRIGGER IF EXISTS handle_user_card_update ON public.user_cards;

-- Then drop the functions
DROP FUNCTION IF EXISTS public.handle_user_card_update();
DROP FUNCTION IF EXISTS public.handle_new_user_card();
DROP TRIGGER IF EXISTS handle_user_card_update ON public.user_cards;

COMMIT;

0 comments on commit 819a360

Please sign in to comment.