Skip to content

Commit fcea975

Browse files
authored
th-214: Business Journey - Adding possible trucks during creating a new driver (#234)
* th-214: + dropdown multi select * th-214: + fetch data from truck table * th-214: + trucks business_id field * th-214: * create truck validation add businessId * th-214: + insert data in users_trucks table * th-214: * fix styles for multi select * th-214: * fix types in multi select * th-214: * update trucks slice * th-214: * fixed api path * th-214: - remove user from add driver form * th-214: * fix dropdown multi select component * th-214: * fix add driver form * th-214: * resolve code review comments * th-214: * resolve comments
1 parent 79170d1 commit fcea975

File tree

55 files changed

+1459
-77
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+1459
-77
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
ALTER TABLE "trucks"
2+
ADD COLUMN "business_id" integer NOT NULL;
3+
4+
--> statement-breakpoint
5+
DO $$ BEGIN
6+
ALTER TABLE "trucks" ADD CONSTRAINT "trucks_business_id_business_details_id_fk" FOREIGN KEY ("business_id") REFERENCES "business_details"("id") ON DELETE no action ON UPDATE no action;
7+
EXCEPTION
8+
WHEN duplicate_object THEN null;
9+
END $$;

0 commit comments

Comments
 (0)