Skip to content

Commit

Permalink
Merge pull request #41 from GApple-T/refresh-token
Browse files Browse the repository at this point in the history
refreshToken columnDefinition 추가
  • Loading branch information
enbraining authored Dec 19, 2023
2 parents 1623c67 + 463be9b commit b42da58
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class RefreshToken {
@Column
private UUID key;

@Column
@Column(columnDefinition = "VARCHAR(500)")
private String value;

public RefreshToken(UUID key, String token) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public ResponseEntity<AuthJoinResponse> join(AuthJoinRequest req){
} else throw new MemberExistsException();
}

@Transactional(readOnly = true)
@Transactional
public ResponseEntity<AuthLoginResponse> login(AuthLoginRequest request){
Member member = memberRepository.findMemberByEmail(request.getEmail())
.orElseThrow(RuntimeException::new);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class Member implements GrantedAuthority {
@Column(columnDefinition = "VARCHAR(50)", nullable = false)
private String email;

@Column(columnDefinition = "VARCHAR(15)")
@Column(columnDefinition = "VARCHAR(20)")
private String name;

@Column(columnDefinition = "INTEGER")
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ spring:
open-in-view: false
hibernate:
dialect: org.hibernate.dialect.PostgreSQLDialect
ddl-auto: update
ddl-auto: create-drop
properties:
hibernate:format_sql: true
show-sql: true
Expand Down

0 comments on commit b42da58

Please sign in to comment.