From af2382db24c34ef917ae45622fe71350c065f436 Mon Sep 17 00:00:00 2001 From: Jinil Sung Date: Tue, 17 Oct 2023 14:44:36 -0700 Subject: [PATCH] GRAD2-2325: schema changes on EdwGraduationSnapshot output table. GRAD2-2325: schema changes on EdwGraduationSnapshot output table. --- .../api/gradstudent/model/dto/EdwGraduationSnapshot.java | 3 +-- .../model/entity/EdwGraduationSnapshotEntity.java | 6 ++---- .../1.0/V1.0.57__DDL-UPDATE_TABLE-EDW_GRADUATION_STATUS.sql | 4 ++++ 3 files changed, 7 insertions(+), 6 deletions(-) create mode 100644 api/src/main/resources/db/migration/1.0/V1.0.57__DDL-UPDATE_TABLE-EDW_GRADUATION_STATUS.sql diff --git a/api/src/main/java/ca/bc/gov/educ/api/gradstudent/model/dto/EdwGraduationSnapshot.java b/api/src/main/java/ca/bc/gov/educ/api/gradstudent/model/dto/EdwGraduationSnapshot.java index 48babbfc..fc15b8b3 100644 --- a/api/src/main/java/ca/bc/gov/educ/api/gradstudent/model/dto/EdwGraduationSnapshot.java +++ b/api/src/main/java/ca/bc/gov/educ/api/gradstudent/model/dto/EdwGraduationSnapshot.java @@ -43,6 +43,5 @@ public class EdwGraduationSnapshot { @JsonFormat(pattern=DEFAULT_DATE_FORMAT) private LocalDate sessionDate; - private String frenchDogwood; - private String francophoneDogwood; + private String schoolOfRecord; } diff --git a/api/src/main/java/ca/bc/gov/educ/api/gradstudent/model/entity/EdwGraduationSnapshotEntity.java b/api/src/main/java/ca/bc/gov/educ/api/gradstudent/model/entity/EdwGraduationSnapshotEntity.java index ab8b1ca4..6889a288 100644 --- a/api/src/main/java/ca/bc/gov/educ/api/gradstudent/model/entity/EdwGraduationSnapshotEntity.java +++ b/api/src/main/java/ca/bc/gov/educ/api/gradstudent/model/entity/EdwGraduationSnapshotEntity.java @@ -57,9 +57,7 @@ public class EdwGraduationSnapshotEntity { private LocalDate runDate; @Column(name = "SESSION_DATE", nullable = true) private LocalDate sessionDate; - @Column(name = "PRINT_FRENCH_DOG", nullable = true) - private String frenchDogwood; - @Column(name = "PRINT_FRANCOPHONE", nullable = true) - private String francophoneDogwood; + @Column(name = "SCHOOL_OF_RECORD", nullable = true) + private String schoolOfRecord; } diff --git a/api/src/main/resources/db/migration/1.0/V1.0.57__DDL-UPDATE_TABLE-EDW_GRADUATION_STATUS.sql b/api/src/main/resources/db/migration/1.0/V1.0.57__DDL-UPDATE_TABLE-EDW_GRADUATION_STATUS.sql new file mode 100644 index 00000000..b88cb9df --- /dev/null +++ b/api/src/main/resources/db/migration/1.0/V1.0.57__DDL-UPDATE_TABLE-EDW_GRADUATION_STATUS.sql @@ -0,0 +1,4 @@ +ALTER TABLE EDW_GRADUATION_SNAPSHOT DROP COLUMN PRINT_FRENCH_DOG; +ALTER TABLE EDW_GRADUATION_SNAPSHOT DROP COLUMN PRINT_FRANCOPHONE; +ALTER TABLE EDW_GRADUATION_SNAPSHOT ADD "SCHOOL_OF_RECORD" VARCHAR2(9 BYTE); +