Skip to content

Commit

Permalink
Improve Flights (#112)
Browse files Browse the repository at this point in the history
Includes several unrelated fixes that came up (such as migration paths).

- Add flightId to tasting schema
- Side panel popout for bottle details on flight
- Record tasting flow will redirect back to flight details

Refs GH-77
  • Loading branch information
dcramer authored Dec 20, 2023
1 parent 32a132e commit d85ef04
Show file tree
Hide file tree
Showing 148 changed files with 2,212 additions and 156 deletions.
2 changes: 1 addition & 1 deletion apps/server/drizzle.config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"out": "./migrations",
"schema": "./db/schema/index.ts",
"schema": "./src/db/schema/index.ts",
"breakpoints": false
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions apps/server/migrations/0062_nifty_mattie_franklin.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ALTER TABLE "tasting" ADD COLUMN "flight_id" bigint;
DO $$ BEGIN
ALTER TABLE "tasting" ADD CONSTRAINT "tasting_flight_id_flight_id_fk" FOREIGN KEY ("flight_id") REFERENCES "flight"("id") ON DELETE no action ON UPDATE no action;
EXCEPTION
WHEN duplicate_object THEN null;
END $$;
Loading

0 comments on commit d85ef04

Please sign in to comment.