Skip to content

Commit

Permalink
Worked on performance to remove nongrad reason fileds for nongrad stu…
Browse files Browse the repository at this point in the history
…dent.

Worked on performance to remove nongrad reason fileds for nongrad student.
  • Loading branch information
infstar committed Oct 24, 2023
1 parent af2382d commit 914c373
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,6 @@ public class EdwGraduationSnapshot {
private BigDecimal gpa;
private String graduatedDate;

private String nonGradReason1;
private String nonGradReason2;
private String nonGradReason3;
private String nonGradReason4;
private String nonGradReason5;
private String nonGradReason6;
private String nonGradReason7;
private String nonGradReason8;
private String nonGradReason9;
private String nonGradReason10;
private String nonGradReason11;
private String nonGradReason12;

@JsonFormat(pattern=DEFAULT_DATE_FORMAT)
private LocalDate runDate;
@JsonFormat(pattern=DEFAULT_DATE_FORMAT)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,31 +28,6 @@ public class EdwGraduationSnapshotEntity {
@Column(name = "GRAD_DATE", nullable = true)
private LocalDate graduatedDate;

@Column(name = "NOT_GRAD_REASON_1", nullable = true)
private String nonGradReason1;
@Column(name = "NOT_GRAD_REASON_2", nullable = true)
private String nonGradReason2;
@Column(name = "NOT_GRAD_REASON_3", nullable = true)
private String nonGradReason3;
@Column(name = "NOT_GRAD_REASON_4", nullable = true)
private String nonGradReason4;
@Column(name = "NOT_GRAD_REASON_5", nullable = true)
private String nonGradReason5;
@Column(name = "NOT_GRAD_REASON_6", nullable = true)
private String nonGradReason6;
@Column(name = "NOT_GRAD_REASON_7", nullable = true)
private String nonGradReason7;
@Column(name = "NOT_GRAD_REASON_8", nullable = true)
private String nonGradReason8;
@Column(name = "NOT_GRAD_REASON_9", nullable = true)
private String nonGradReason9;
@Column(name = "NOT_GRAD_REASON_10", nullable = true)
private String nonGradReason10;
@Column(name = "NOT_GRAD_REASON_11", nullable = true)
private String nonGradReason11;
@Column(name = "NOT_GRAD_REASON_12", nullable = true)
private String nonGradReason12;

@Column(name = "RUN_DATE", nullable = true)
private LocalDate runDate;
@Column(name = "SESSION_DATE", nullable = true)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
ALTER TABLE EDW_GRADUATION_SNAPSHOT DROP COLUMN NOT_GRAD_REASON_1;
ALTER TABLE EDW_GRADUATION_SNAPSHOT DROP COLUMN NOT_GRAD_REASON_2;
ALTER TABLE EDW_GRADUATION_SNAPSHOT DROP COLUMN NOT_GRAD_REASON_3;
ALTER TABLE EDW_GRADUATION_SNAPSHOT DROP COLUMN NOT_GRAD_REASON_4;
ALTER TABLE EDW_GRADUATION_SNAPSHOT DROP COLUMN NOT_GRAD_REASON_5;
ALTER TABLE EDW_GRADUATION_SNAPSHOT DROP COLUMN NOT_GRAD_REASON_6;
ALTER TABLE EDW_GRADUATION_SNAPSHOT DROP COLUMN NOT_GRAD_REASON_7;
ALTER TABLE EDW_GRADUATION_SNAPSHOT DROP COLUMN NOT_GRAD_REASON_8;
ALTER TABLE EDW_GRADUATION_SNAPSHOT DROP COLUMN NOT_GRAD_REASON_9;
ALTER TABLE EDW_GRADUATION_SNAPSHOT DROP COLUMN NOT_GRAD_REASON_10;
ALTER TABLE EDW_GRADUATION_SNAPSHOT DROP COLUMN NOT_GRAD_REASON_11;
ALTER TABLE EDW_GRADUATION_SNAPSHOT DROP COLUMN NOT_GRAD_REASON_12;

0 comments on commit 914c373

Please sign in to comment.