Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class AttachmentEntity extends BaseTimeEntity {
@Column(nullable = false)
private String originalName;

@Column(nullable = false)
@Column(name = "file_url", nullable = false, length = 2048)
private String fileUrl;

@Column(nullable = false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class CommentEntity extends BaseTimeEntity {
@Column
private String originalName;

@Column
@Column(name = "file_url", length = 2048)
private String fileUrl;

@Column
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
alter table attachment
modify file_url varchar(2048) not null;

alter table comment
modify file_url varchar(2048) null;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
alter table attachment
modify file_url varchar(2048) not null;

alter table comment
modify file_url varchar(2048) null;
4 changes: 2 additions & 2 deletions src/main/resources/mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ spring.config.activate.on-profile: local

spring:
flyway:
enabled: true
enabled: false
baseline-on-migrate: true
locations: classpath:db/migration/dev
jpa:
Expand Down Expand Up @@ -49,7 +49,7 @@ spring:
ddl-auto: validate
properties:
hibernate:
format_sql: false
format_sql: true
show_sql: true
flyway:
enabled: true
Expand Down