Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotfix 1.0.2 increase size of thumbnail image field in recruit #823

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 @@ -64,7 +64,7 @@ public class Recruit extends BaseEntity {
@Column(nullable = false)
@Enumerated(EnumType.STRING)
private RecruitStatus status;
@Column
@Column(columnDefinition = "TEXT")
private String thumbnailUrl;
@OneToMany(mappedBy = "recruit", fetch = FetchType.EAGER, cascade = CascadeType.ALL, orphanRemoval = true)
private List<RecruitTag> recruitTags = new ArrayList<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ public class RecruitFile {
@JoinColumn(name = "recruit_id")
private Recruit recruit;

@Column(nullable = false)
@Column(nullable = false, columnDefinition = "TEXT")
private String url;
}
3 changes: 3 additions & 0 deletions src/main/java/peer/backend/entity/board/team/Post.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,11 @@ public class Post extends BaseEntity{
@Lob
@NotNull
private String content;
@Column
private int hit;
@Column(columnDefinition = "TEXT")
private String image;
@Column
private int liked;

@OneToMany(mappedBy = "post", cascade = CascadeType.PERSIST, orphanRemoval = true)
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/peer/backend/entity/board/team/PostFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class PostFile {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@Column(nullable = false)
@Column(nullable = false, columnDefinition = "TEXT")
private String url;

@ManyToOne(fetch = FetchType.LAZY)
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/peer/backend/entity/team/Team.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,14 @@ public class Team extends BaseEntity {
@Column(nullable = false)
private int dueValue;

@Column()
@Column(columnDefinition = "TEXT")
private String teamPicturePath;

@Enumerated(EnumType.STRING)
@Column(nullable = false)
private TeamOperationFormat operationFormat;

@Column()
@Column(columnDefinition = "TEXT")
private String teamLogoPath;

@Enumerated(EnumType.STRING)
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/peer/backend/entity/user/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public class User extends BaseEntity implements Login {
@Column//(nullable = false)
private String address;

@Column
@Column(columnDefinition = "TEXT")
private String imageUrl;

@Column//(nullable = false)
Expand Down
Loading