-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 유저의 프로필이미지 필드 추가 - 기본값 null - PATCH /users/me API를 통해 수정 가능
- Loading branch information
Showing
6 changed files
with
55 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { Migration } from '@mikro-orm/migrations'; | ||
|
||
export class Migration20240904080344 extends Migration { | ||
async up(): Promise<void> { | ||
this.addSql( | ||
'alter table "user" add column "profile_image" varchar(255) null;', | ||
); | ||
|
||
this.addSql( | ||
'alter table "invite_link" alter column "map_role" type varchar(255) using ("map_role"::varchar(255));', | ||
); | ||
this.addSql( | ||
'alter table "invite_link" alter column "map_role" set default \'READ\';', | ||
); | ||
} | ||
|
||
async down(): Promise<void> { | ||
this.addSql('alter table "user" drop column "profile_image";'); | ||
|
||
this.addSql( | ||
'alter table "invite_link" alter column "map_role" type varchar(255) using ("map_role"::varchar(255));', | ||
); | ||
this.addSql( | ||
'alter table "invite_link" alter column "map_role" set default \'WRITE\';', | ||
); | ||
} | ||
} |
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