Skip to content

Commit

Permalink
fix: V1 sql의 social type enum 수정 (#25)
Browse files Browse the repository at this point in the history
* fix: V1 sql의 social type enum 수정

* refactor: none 값 추가

* refactor: enum 변경
  • Loading branch information
hanbirang authored Nov 11, 2024
1 parent 5a970c0 commit b40f07e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package site.sonisori.sonisori.common;

public enum SocialType {
google, kakao
naver, kakao, none
}
2 changes: 1 addition & 1 deletion src/main/resources/db/migration/V1__init.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ CREATE TABLE IF NOT EXISTS `sonisori`.`users` (
`email` VARCHAR(45) NOT NULL,
`role` ENUM('ROLE_USER','ROLE_ADMIN') NOT NULL DEFAULT 'ROLE_USER',
`username` VARCHAR(500) NOT NULL,
`social_type` ENUM('kakao','google') NOT NULL,
`social_type` ENUM('kakao','naver', 'none') NOT NULL,
`created_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP(),
`updated_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP() ON UPDATE CURRENT_TIMESTAMP(),
PRIMARY KEY (`id`)
Expand Down

0 comments on commit b40f07e

Please sign in to comment.