Skip to content

Commit ad443de

Browse files
authored
feat(db): 유저 프로필 사진 2, 3번만 남기기 (#150)
1 parent e8bbaea commit ad443de

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
user-profile-images-default:
22
content-type: image/png
33
keys:
4-
- user-profile-images/default/default-1.png
54
- user-profile-images/default/default-2.png
6-
- user-profile-images/default/default-3.png
7-
- user-profile-images/default/default-4.png
8-
- user-profile-images/default/default-5.png
9-
- user-profile-images/default/default-6.png
5+
- user-profile-images/default/default-3.png
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
-- 기본 프로필 이미지 개수 변경에 따른 기존 사용자들의 variant 값 재할당
2+
3+
UPDATE users
4+
SET default_profile_image_variant = (default_profile_image_variant % 2)::smallint
5+
WHERE default_profile_image_variant IS NOT NULL;

0 commit comments

Comments
 (0)