Skip to content

Commit

Permalink
update alerts to navlinks (#454)
Browse files Browse the repository at this point in the history
* add navlinks and add event id to navlinks

* filter global navlinks
  • Loading branch information
diegoalzate authored Jul 31, 2024
1 parent 42d8698 commit c8f0957
Show file tree
Hide file tree
Showing 12 changed files with 1,812 additions and 32 deletions.
7 changes: 7 additions & 0 deletions migrations/0029_mushy_vermin.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
ALTER TABLE "alerts" RENAME TO "nav_links";--> statement-breakpoint
ALTER TABLE "nav_links" ADD COLUMN "event_id" uuid;--> statement-breakpoint
DO $$ BEGIN
ALTER TABLE "nav_links" ADD CONSTRAINT "nav_links_event_id_events_id_fk" FOREIGN KEY ("event_id") REFERENCES "public"."events"("id") ON DELETE no action ON UPDATE no action;
EXCEPTION
WHEN duplicate_object THEN null;
END $$;
Loading

0 comments on commit c8f0957

Please sign in to comment.