Skip to content

Commit

Permalink
Add bottler to forms and APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
dcramer committed May 24, 2023
1 parent d0c883f commit bbf8271
Show file tree
Hide file tree
Showing 20 changed files with 1,390 additions and 85 deletions.
6 changes: 6 additions & 0 deletions apps/api/migrations/0021_lush_redwing.sql
@@ -0,0 +1,6 @@
ALTER TABLE "bottle" ADD COLUMN "bottler_id" bigint;
DO $$ BEGIN
ALTER TABLE "bottle" ADD CONSTRAINT "bottle_bottler_id_entity_id_fk" FOREIGN KEY ("bottler_id") REFERENCES "entity"("id") ON DELETE no action ON UPDATE no action;
EXCEPTION
WHEN duplicate_object THEN null;
END $$;

0 comments on commit bbf8271

Please sign in to comment.