Skip to content

Commit

Permalink
chore : 리뷰반영
Browse files Browse the repository at this point in the history
  • Loading branch information
Choon0414 committed Sep 22, 2024
1 parent 775425d commit b7f94b0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ public void updateVersion(String type, AdminVersionUpdateRequest request) {

Version currentVersion = adminVersionRepository.getByTypeAndIsPrevious(versionType, false);
currentVersion.toPreviousVersion();
adminVersionRepository.save(currentVersion);

Version newVersion = Version.of(versionType, request);
adminVersionRepository.save(newVersion);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ public class VersionContent extends BaseEntity {
@JoinColumn(name = "version_id", referencedColumnName = "id", nullable = false)
private Version version;

@Column(name = "title", length = 50)
@Column(name = "title")
private String title;

@Column(name = "content", length = 50)
@Column(name = "content")
private String content;

@Builder
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ALTER TABLE `versions`
ADD COLUMN (
`title` VARCHAR(255) COMMENT '업데이트 문구 제목',
`is_previous` tinyint(1) NOT NULL DEFAULT 0 COMMENT '지난 버전 여부'
`is_previous` tinyint NOT NULL DEFAULT 0 COMMENT '지난 버전 여부'
),
DROP CONSTRAINT `versions_type_unique`
;
Expand Down

0 comments on commit b7f94b0

Please sign in to comment.