Skip to content

Commit

Permalink
修改某些字段的长度
Browse files Browse the repository at this point in the history
  • Loading branch information
heavyrian2012 committed Oct 13, 2023
1 parent 5a5accc commit 7c6f3be
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spring.jpa.hibernate.ddl-auto=update
# mysql默认配置
# mysql需要手动创建数据库,mysql命令行下执行 create database appdata; appdata可以换为别的库名,但注意不能使用IM服务器使用的数据库"wfchat",否则会引起冲突。
##*********************** mysql DB begin *************************
#spring.datasource.url=jdbc:mysql://localhost:3306/appdata?serverTimezone=UTC&useSSL=false
#spring.datasource.url=jdbc:mysql://localhost:3306/appdata?serverTimezone=UTC&allowPublicKeyRetrieval=true&useSSL=false
#spring.datasource.username=root
#spring.datasource.password=123456
#spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
Expand Down
1 change: 1 addition & 0 deletions src/main/java/cn/wildfirechat/app/jpa/Announcement.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public class Announcement {

private String author;

@Column(length = 2048)
private String announcement;

private long timestamp;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/cn/wildfirechat/app/jpa/FavoriteItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class FavoriteItem {
@Nullable
public Long messageUid;

@Column(name = "user_id")
@Column(name = "user_id", length = 64)
public String userId;

@Column(name = "type")
Expand Down

0 comments on commit 7c6f3be

Please sign in to comment.