Skip to content

Commit

Permalink
fix: commentCount 컬럼을 추가한다
Browse files Browse the repository at this point in the history
  • Loading branch information
devbelly committed Jul 21, 2024
1 parent 971cb8b commit ad6a380
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ class Recruitment(

scrapCount: Int = 0,

commentCount: Int = 0,

@Column(nullable = false)
val createdDateTime: LocalDateTime = LocalDateTime.now(),

Expand Down Expand Up @@ -91,6 +93,10 @@ class Recruitment(
var scrapCount: Int = scrapCount
private set

@Column(nullable = false)
var commentCount: Int = commentCount
private set

@Column(nullable = false)
var startDateTime: LocalDateTime = startDateTime
private set
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ create table hash_tag
target enum ('RECRUITMENT'),
primary key (id)
) engine=InnoDB;

ALTER TABLE recruitment ADD COLUMN comment_count INTEGER DEFAULT 0 NOT NULL;

0 comments on commit ad6a380

Please sign in to comment.