Skip to content

Commit 9e95b13

Browse files
committed
Make the website optional.
1 parent 0e22e64 commit 9e95b13

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

server/src/main/java/com/objectcomputing/checkins/services/volunteering/VolunteeringOrganization.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ public class VolunteeringOrganization {
4444
private String description;
4545

4646
@Column(name = "website")
47-
@NotBlank
4847
@Schema(description = "website for the volunteering organization")
4948
private String website;
5049

@@ -59,4 +58,4 @@ public VolunteeringOrganization(String name, String description, String website)
5958
public VolunteeringOrganization(String name, String description, String website, boolean active) {
6059
this(null, name, description, website, active);
6160
}
62-
}
61+
}

server/src/main/java/com/objectcomputing/checkins/services/volunteering/VolunteeringOrganizationDTO.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,13 @@ public class VolunteeringOrganizationDTO {
2121
@Schema(description = "description of the volunteering organization")
2222
private String description;
2323

24-
@NotBlank
2524
@Schema(description = "website for the volunteering organization")
2625
private String website;
2726

2827
@Schema(description = "whether the Volunteering Organization is active")
2928
private Boolean active;
3029

31-
public VolunteeringOrganizationDTO(@NotBlank String name, @NotBlank String description, @NotBlank String website) {
30+
public VolunteeringOrganizationDTO(@NotBlank String name, @NotBlank String description, String website) {
3231
this(name, description, website, true);
3332
}
3433
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ALTER TABLE volunteering_organization ALTER COLUMN website DROP NOT NULL

0 commit comments

Comments
 (0)