-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(kilobase): user_card sql drops were out of order.
- Loading branch information
Showing
2 changed files
with
7 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
apps/kilobase/sql/user_cards/20241109130000_user_cards_migration.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |