Skip to content

Commit

Permalink
Merge pull request #68 from seanmorley15/TripAdventure
Browse files Browse the repository at this point in the history
Trip adventure feature
  • Loading branch information
seanmorley15 authored May 15, 2024
2 parents a0400bc + 82f7101 commit 90ea29f
Show file tree
Hide file tree
Showing 8 changed files with 650 additions and 12 deletions.
8 changes: 8 additions & 0 deletions migrations/0001_salty_ser_duncan.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
ALTER TABLE "adventures" ADD COLUMN "tripId" integer;--> statement-breakpoint
DO $$ BEGIN
ALTER TABLE "adventures" ADD CONSTRAINT "adventures_tripId_userPlannedTrips_id_fk" FOREIGN KEY ("tripId") REFERENCES "userPlannedTrips"("id") ON DELETE no action ON UPDATE no action;
EXCEPTION
WHEN duplicate_object THEN null;
END $$;
--> statement-breakpoint
ALTER TABLE "userPlannedTrips" DROP COLUMN IF EXISTS "adventures";
Loading

0 comments on commit 90ea29f

Please sign in to comment.