-
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add image to user profile (#1053)
* feat: added new field to user model to store user profile_img * feat: updated schema to add updated task history * updated response of update_task_status * revert migration * Revert migration inside revert folder --------- Co-authored-by: sujanadh <sujanadh07@gmail.com>
- Loading branch information
Showing
7 changed files
with
77 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
-- ## Migration to: | ||
-- * Add field user.profile_img (str). | ||
|
||
-- Start a transaction | ||
BEGIN; | ||
|
||
ALTER TABLE IF EXISTS public.users | ||
ADD COLUMN IF NOT EXISTS profile_img VARCHAR; | ||
-- Commit the transaction | ||
COMMIT; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
-- Start a transaction | ||
BEGIN; | ||
|
||
-- Remove the profile_img column from the public.users table | ||
ALTER TABLE IF EXISTS public.users | ||
DROP COLUMN IF EXISTS profile_img; | ||
|
||
-- Commit the transaction | ||
COMMIT; |