Skip to content
This repository was archived by the owner on Jul 7, 2025. It is now read-only.

Commit 7ae29cb

Browse files
authored
Merge pull request #117 from ASAP-Lettering/ASAP-404
ASAP-404 content 컬럼 text로 변경
2 parents eacd064 + eccad7f commit 7ae29cb

3 files changed

Lines changed: 12 additions & 1 deletion

File tree

Infrastructure-Module/Persistence/src/main/kotlin/com/asap/persistence/jpa/letter/entity/DraftLetterEntity.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ class DraftLetterEntity(
1919
images: List<String>,
2020
updatedAt: LocalDateTime,
2121
) : AggregateRoot<DraftLetterEntity>(id) {
22+
@Column(
23+
name = "content",
24+
nullable = false,
25+
columnDefinition = "text",
26+
)
2227
var content: String = content
2328
var receiverName: String = receiverName
2429

Infrastructure-Module/Persistence/src/main/kotlin/com/asap/persistence/jpa/letter/entity/ReceiveDraftLetterEntity.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ class ReceiveDraftLetterEntity(
2121
updatedAt: LocalDateTime,
2222
type: ReceiveDraftLetterType
2323
) : BaseEntity(id) {
24-
24+
@Column(
25+
name = "content",
26+
nullable = false,
27+
columnDefinition = "text",
28+
)
2529
var content: String = content
2630
var senderName: String = senderName
2731

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
alter table draft_letters modify column content text;
2+
alter table receive_draft_letters modify column content text;

0 commit comments

Comments
 (0)