Skip to content

Commit

Permalink
Merge pull request #128 from GenieWizards/93-feat-add-user-to-group-w…
Browse files Browse the repository at this point in the history
…ho-is-creating-group

93 feat add user to group who is creating group
  • Loading branch information
sub1120 authored Dec 27, 2024
2 parents 67cdffc + 83b0a00 commit 72387be
Show file tree
Hide file tree
Showing 8 changed files with 972 additions and 54 deletions.
7 changes: 7 additions & 0 deletions src/db/migrations/0001_parallel_red_hulk.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
ALTER TABLE "expense" ALTER COLUMN "category_id" DROP NOT NULL;--> statement-breakpoint
ALTER TABLE "expense" ADD COLUMN "creator_id" varchar(60) NOT NULL;--> statement-breakpoint
DO $$ BEGIN
ALTER TABLE "expense" ADD CONSTRAINT "expense_creator_id_users_id_fk" FOREIGN KEY ("creator_id") REFERENCES "public"."users"("id") ON DELETE cascade ON UPDATE cascade;
EXCEPTION
WHEN duplicate_object THEN null;
END $$;
Loading

0 comments on commit 72387be

Please sign in to comment.