Skip to content

Commit

Permalink
release: 0.4.4
Browse files Browse the repository at this point in the history
  • Loading branch information
devxb committed Feb 12, 2024
1 parent 74add68 commit 3652a80
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main/java/net/teumteum/alert/domain/Alert.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ public class Alert extends TimeBaseEntity {
@Column(name = "user_id", nullable = false)
private Long userId;

@Column(name = "title", nullable = false, length = 20)
@Column(name = "title", nullable = false)
private String title;

@Column(name = "body", nullable = false, length = 20)
@Column(name = "body", nullable = false)
private String body;

@Column(name = "type")
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
alter table alert drop column title;
alter table alert drop column `body`;
alter table alert add column title text not null;
alter table alert add column `body` text not null;
4 changes: 2 additions & 2 deletions src/test/resources/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ create table if not exists users_reviews
create table if not exists alert(
id bigint not null auto_increment,
user_id bigint not null,
title varchar(20) not null,
`body` varchar(20) not null,
title text not null,
`body` text not null,
type enum('BEFORE_MEETING'),
created_at timestamp(6) not null,
updated_at timestamp(6) not null,
Expand Down

0 comments on commit 3652a80

Please sign in to comment.