Skip to content

Commit

Permalink
Removed composite key for officers id and clubId; gave officer id a d…
Browse files Browse the repository at this point in the history
…efault as uuid
  • Loading branch information
BK2004 committed Oct 30, 2024
1 parent 19b9187 commit 24903aa
Show file tree
Hide file tree
Showing 4 changed files with 843 additions and 17 deletions.
4 changes: 4 additions & 0 deletions src/server/db/migrations/0009_unknown_mastermind.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ALTER TABLE "officers" DROP CONSTRAINT "officers_club_id_id";--> statement-breakpoint
ALTER TABLE "officers" ADD PRIMARY KEY ("id");--> statement-breakpoint
ALTER TABLE "officers" ALTER COLUMN "id" SET DATA TYPE uuid;--> statement-breakpoint
ALTER TABLE "officers" ALTER COLUMN "id" SET DEFAULT gen_random_uuid();
Loading

0 comments on commit 24903aa

Please sign in to comment.