Skip to content

Commit bc94df5

Browse files
authored
th-311: Create Component For Uploading User Photo (#364)
* th-311: + add everything with testing code, a draft merge * th-311: * rework the types for the user and it's cross-fe/be DTOs, add avatarUrl to all driver dto entities * th-311: * resolve some minor requests after code-review * th-311: * change avatarUrl type to be nullable instead of undefineable * th-311: + setup default avatar image * th-311: * remove temp code, add proper driver avatar selection flow * th-311: * move api uploadAvatar from file-api to driver-api, fix slices * th-311: * update swagger definitions * th-311: * resolve a bunch of issues after review * th-311: * more minor improvements * th-311: - revert back changes to isCircle-driven className assignment * th-311: - remove redundant env definitions in frontend env schema
1 parent 9288f44 commit bc94df5

File tree

117 files changed

+2327
-143
lines changed

Some content is hidden

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

117 files changed

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

0 commit comments

Comments
 (0)