Skip to content

Commit

Permalink
Merge pull request #293 from bcgov/grad-release
Browse files Browse the repository at this point in the history
Grad release 1.18.0
  • Loading branch information
githubmamatha authored Apr 24, 2024
2 parents 3084531 + 451ff93 commit 38c74cb
Show file tree
Hide file tree
Showing 9 changed files with 138 additions and 1 deletion.
2 changes: 1 addition & 1 deletion api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>ca.bc.gov.educ</groupId>
<artifactId>educ-grad-course-api</artifactId>
<version>1.8.40</version>
<version>1.8.41</version>
<name>educ-grad-course-api</name>
<description>Ministry of Education GRAD Course API</description>

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
-- FINE_ARTS_APPLIED_SKILLS_CODE definition

CREATE TABLE "FINE_ARTS_APPLIED_SKILLS_CODE"
( "FINE_ARTS_APPLIED_SKILLS_CODE" VARCHAR2(1),
"LABEL" VARCHAR2(50) NOT NULL ENABLE,
"DESCRIPTION" VARCHAR2(355) NOT NULL ENABLE,
"DISPLAY_ORDER" NUMBER NOT NULL ENABLE,
"EFFECTIVE_DATE" DATE NOT NULL ENABLE,
"EXPIRY_DATE" DATE,
"CREATE_USER" VARCHAR2(32) DEFAULT USER NOT NULL ENABLE,
"CREATE_DATE" DATE DEFAULT SYSTIMESTAMP NOT NULL ENABLE,
"UPDATE_USER" VARCHAR2(32) DEFAULT USER NOT NULL ENABLE,
"UPDATE_DATE" DATE DEFAULT SYSTIMESTAMP NOT NULL ENABLE,
CONSTRAINT "FINE_ARTS_APPLIED_SKILLS_CODE_PK" PRIMARY KEY ("FINE_ARTS_APPLIED_SKILLS_CODE")
USING INDEX TABLESPACE "API_GRAD_IDX" ENABLE
) SEGMENT CREATION IMMEDIATE
NOCOMPRESS LOGGING
TABLESPACE "API_GRAD_DATA" NO INMEMORY ;

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
INSERT INTO FINE_ARTS_APPLIED_SKILLS_CODE (FINE_ARTS_APPLIED_SKILLS_CODE,LABEL,DESCRIPTION,DISPLAY_ORDER,EFFECTIVE_DATE,EXPIRY_DATE) VALUES ('A','Applied Skills','Course meets the Applied Skills Requirement',1,TIMESTAMP'1996-07-01 00:00:00.0',TIMESTAMP'2011-06-30 00:00:00.0');
INSERT INTO FINE_ARTS_APPLIED_SKILLS_CODE (FINE_ARTS_APPLIED_SKILLS_CODE,LABEL,DESCRIPTION,DISPLAY_ORDER,EFFECTIVE_DATE,EXPIRY_DATE) VALUES ('F','Fine Arts','Course meets the Fine Arts Requirement',2,TIMESTAMP'1996-07-01 00:00:00.0',TIMESTAMP'2011-06-30 00:00:00.0');
INSERT INTO FINE_ARTS_APPLIED_SKILLS_CODE (FINE_ARTS_APPLIED_SKILLS_CODE,LABEL,DESCRIPTION,DISPLAY_ORDER,EFFECTIVE_DATE,EXPIRY_DATE) VALUES ('B','Both','Course meets both the Applied Skills AND Fine Arts Requirement',3,TIMESTAMP'1996-07-01 00:00:00.0',NULL);

Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
-- EQUIVALENT_OR_CHALLENGE_CODE definition

CREATE TABLE "EQUIVALENT_OR_CHALLENGE_CODE"
( "EQUIVALENT_OR_CHALLENGE_CODE" VARCHAR2(1),
"LABEL" VARCHAR2(50) NOT NULL ENABLE,
"DESCRIPTION" VARCHAR2(355) NOT NULL ENABLE,
"DISPLAY_ORDER" NUMBER NOT NULL ENABLE,
"EFFECTIVE_DATE" DATE NOT NULL ENABLE,
"EXPIRY_DATE" DATE,
"CREATE_USER" VARCHAR2(32) DEFAULT USER NOT NULL ENABLE,
"CREATE_DATE" DATE DEFAULT SYSTIMESTAMP NOT NULL ENABLE,
"UPDATE_USER" VARCHAR2(32) DEFAULT USER NOT NULL ENABLE,
"UPDATE_DATE" DATE DEFAULT SYSTIMESTAMP NOT NULL ENABLE,
CONSTRAINT "EQUIVALENT_OR_CHALLENGE_CODE_PK" PRIMARY KEY ("EQUIVALENT_OR_CHALLENGE_CODE")
USING INDEX TABLESPACE "API_GRAD_IDX" ENABLE
) SEGMENT CREATION IMMEDIATE
NOCOMPRESS LOGGING
TABLESPACE "API_GRAD_DATA" NO INMEMORY ;

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
INSERT INTO EQUIVALENT_OR_CHALLENGE_CODE (EQUIVALENT_OR_CHALLENGE_CODE,LABEL,DESCRIPTION,DISPLAY_ORDER,EFFECTIVE_DATE,EXPIRY_DATE) VALUES ('E','Equivalency','Course Requirement is met by an equivalency.',1,TIMESTAMP'1984-01-01 00:00:00.0',NULL);
INSERT INTO EQUIVALENT_OR_CHALLENGE_CODE (EQUIVALENT_OR_CHALLENGE_CODE,LABEL,DESCRIPTION,DISPLAY_ORDER,EFFECTIVE_DATE,EXPIRY_DATE) VALUES ('C','Challenge','Course Requirement is met by a course challenge.',2,TIMESTAMP'1984-01-01 00:00:00.0',NULL);

Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
-- EXAM_SPECIAL_CASE_CODE definition

CREATE TABLE "EXAM_SPECIAL_CASE_CODE"
( "EXAM_SPECIAL_CASE_CODE" VARCHAR2(1),
"LABEL" VARCHAR2(50) NOT NULL ENABLE,
"DESCRIPTION" VARCHAR2(355) NOT NULL ENABLE,
"DISPLAY_ORDER" NUMBER NOT NULL ENABLE,
"EFFECTIVE_DATE" DATE NOT NULL ENABLE,
"EXPIRY_DATE" DATE,
"CREATE_USER" VARCHAR2(32) DEFAULT USER NOT NULL ENABLE,
"CREATE_DATE" DATE DEFAULT SYSTIMESTAMP NOT NULL ENABLE,
"UPDATE_USER" VARCHAR2(32) DEFAULT USER NOT NULL ENABLE,
"UPDATE_DATE" DATE DEFAULT SYSTIMESTAMP NOT NULL ENABLE,
CONSTRAINT "EXAM_SPECIAL_CASE_CODE_PK" PRIMARY KEY ("EXAM_SPECIAL_CASE_CODE")
USING INDEX TABLESPACE "API_GRAD_IDX" ENABLE
) SEGMENT CREATION IMMEDIATE
NOCOMPRESS LOGGING
TABLESPACE "API_GRAD_DATA" NO INMEMORY ;

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
INSERT INTO EXAM_SPECIAL_CASE_CODE (EXAM_SPECIAL_CASE_CODE,LABEL,DESCRIPTION,DISPLAY_ORDER,EFFECTIVE_DATE,EXPIRY_DATE) VALUES ('A','Aegrotat','Aegrotat',1,TIMESTAMP'1984-01-01 00:00:00.0',NULL);
INSERT INTO EXAM_SPECIAL_CASE_CODE (EXAM_SPECIAL_CASE_CODE,LABEL,DESCRIPTION,DISPLAY_ORDER,EFFECTIVE_DATE,EXPIRY_DATE) VALUES ('B','Special Case B','Special Case B',2,TIMESTAMP'1984-01-01 00:00:00.0',NULL);
INSERT INTO EXAM_SPECIAL_CASE_CODE (EXAM_SPECIAL_CASE_CODE,LABEL,DESCRIPTION,DISPLAY_ORDER,EFFECTIVE_DATE,EXPIRY_DATE) VALUES ('C','Challenge','Challenge',3,TIMESTAMP'1984-01-01 00:00:00.0',NULL);
INSERT INTO EXAM_SPECIAL_CASE_CODE (EXAM_SPECIAL_CASE_CODE,LABEL,DESCRIPTION,DISPLAY_ORDER,EFFECTIVE_DATE,EXPIRY_DATE) VALUES ('D','Deferred','Deferred',4,TIMESTAMP'1984-01-01 00:00:00.0',NULL);
INSERT INTO EXAM_SPECIAL_CASE_CODE (EXAM_SPECIAL_CASE_CODE,LABEL,DESCRIPTION,DISPLAY_ORDER,EFFECTIVE_DATE,EXPIRY_DATE) VALUES ('F','Special Case F','Special Case F',5,TIMESTAMP'1984-01-01 00:00:00.0',NULL);
INSERT INTO EXAM_SPECIAL_CASE_CODE (EXAM_SPECIAL_CASE_CODE,LABEL,DESCRIPTION,DISPLAY_ORDER,EFFECTIVE_DATE,EXPIRY_DATE) VALUES ('N','None','None',6,TIMESTAMP'1984-01-01 00:00:00.0',NULL);
INSERT INTO EXAM_SPECIAL_CASE_CODE (EXAM_SPECIAL_CASE_CODE,LABEL,DESCRIPTION,DISPLAY_ORDER,EFFECTIVE_DATE,EXPIRY_DATE) VALUES ('Q','Disqualified','Disqualified',7,TIMESTAMP'1984-01-01 00:00:00.0',NULL);
INSERT INTO EXAM_SPECIAL_CASE_CODE (EXAM_SPECIAL_CASE_CODE,LABEL,DESCRIPTION,DISPLAY_ORDER,EFFECTIVE_DATE,EXPIRY_DATE) VALUES ('R','Rewrite','Rewrite',8,TIMESTAMP'1984-01-01 00:00:00.0',NULL);
INSERT INTO EXAM_SPECIAL_CASE_CODE (EXAM_SPECIAL_CASE_CODE,LABEL,DESCRIPTION,DISPLAY_ORDER,EFFECTIVE_DATE,EXPIRY_DATE) VALUES ('V','Verified','Verified',9,TIMESTAMP'1984-01-01 00:00:00.0',NULL);
INSERT INTO EXAM_SPECIAL_CASE_CODE (EXAM_SPECIAL_CASE_CODE,LABEL,DESCRIPTION,DISPLAY_ORDER,EFFECTIVE_DATE,EXPIRY_DATE) VALUES ('W','Special Case W','Special Case W',10,TIMESTAMP'1984-01-01 00:00:00.0',NULL);
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
-- STUDENT_COURSE_EXAM definition

CREATE TABLE "STUDENT_COURSE_EXAM"
( "STUDENT_COURSE_EXAM_ID" RAW(16) DEFAULT SYS_GUID(),
"SCHOOL_PERCENT" NUMBER(3),
"EXAM_PERCENT" NUMBER(3),
"SCHOOL_BEST_PERCENT" NUMBER(3),
"EXAM_BEST_PERCENT" NUMBER(3),
"EXAM_SPECIAL_CASE_CODE" VARCHAR2(1),
"TO_WRITE_FLAG" VARCHAR2(1),
"CREATE_USER" VARCHAR2(32) DEFAULT USER NOT NULL ENABLE,
"CREATE_DATE" DATE DEFAULT SYSTIMESTAMP NOT NULL ENABLE,
"UPDATE_USER" VARCHAR2(32) DEFAULT USER NOT NULL ENABLE,
"UPDATE_DATE" DATE DEFAULT SYSTIMESTAMP NOT NULL ENABLE,
CONSTRAINT "STUDENT_COURSE_EXAM_PK" PRIMARY KEY ("STUDENT_COURSE_EXAM_ID")
USING INDEX TABLESPACE "API_GRAD_IDX" ENABLE,
CONSTRAINT "EXAM_SPL_CASECD_FK" FOREIGN KEY ("EXAM_SPECIAL_CASE_CODE")
REFERENCES "EXAM_SPECIAL_CASE_CODE" ("EXAM_SPECIAL_CASE_CODE") ENABLE
) SEGMENT CREATION IMMEDIATE
NOCOMPRESS LOGGING
TABLESPACE "API_GRAD_DATA" NO INMEMORY ;

Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
-- STUDENT_COURSE definition

CREATE TABLE "STUDENT_COURSE"
( "STUDENT_COURSE_ID" RAW(16) DEFAULT SYS_GUID(),
"GRADUATION_STUDENT_RECORD_ID" RAW(16) NOT NULL ENABLE,
"COURSE_ID" NUMBER(7),
"COURSE_CODE" VARCHAR2(7) NOT NULL ENABLE,
"COURSE_LEVEL" VARCHAR2(3),
"COURSE_SESSION" DATE NOT NULL ENABLE,
"INTERIM_PERCENT" NUMBER(3),
"INTERIM_LETTER_GRADE" VARCHAR2(2),
"FINAL_PERCENT" NUMBER(3),
"FINAL_LETTER_GRADE" VARCHAR2(2),
"NUMBER_CREDITS" NUMBER(1),
"EQUIVALENT_OR_CHALLENGE_CODE" VARCHAR2(1),
"FINE_ARTS_APPLIED_SKILLS_CODE" VARCHAR2(1),
"RELATED_COURSE_ID" NUMBER(7),
"RELATED_COURSE" VARCHAR2(7),
"RELATED_LEVEL" VARCHAR2(3),
"CUSTOM_COURSE_NAME" VARCHAR2(40),
"STUDENT_COURSE_EXAM_ID" RAW(16),
"CREATE_USER" VARCHAR2(32) DEFAULT USER NOT NULL ENABLE,
"CREATE_DATE" DATE DEFAULT SYSTIMESTAMP NOT NULL ENABLE,
"UPDATE_USER" VARCHAR2(32) DEFAULT USER NOT NULL ENABLE,
"UPDATE_DATE" DATE DEFAULT SYSTIMESTAMP NOT NULL ENABLE,
CONSTRAINT "STUDENT_COURSE_PK" PRIMARY KEY ("STUDENT_COURSE_ID")
USING INDEX TABLESPACE "API_GRAD_IDX" ENABLE,
CONSTRAINT "STUDENT_COURSE_EXAM_FK" FOREIGN KEY ("STUDENT_COURSE_EXAM_ID")
REFERENCES "STUDENT_COURSE_EXAM" ("STUDENT_COURSE_EXAM_ID") ENABLE,
CONSTRAINT "EQUIV_OR_CHLNGCD_FK" FOREIGN KEY ("EQUIVALENT_OR_CHALLENGE_CODE")
REFERENCES "EQUIVALENT_OR_CHALLENGE_CODE" ("EQUIVALENT_OR_CHALLENGE_CODE") ENABLE,
CONSTRAINT "FINE_ARTS_APPL_SKLSCD_FK" FOREIGN KEY ("FINE_ARTS_APPLIED_SKILLS_CODE")
REFERENCES "FINE_ARTS_APPLIED_SKILLS_CODE" ("FINE_ARTS_APPLIED_SKILLS_CODE") ENABLE
) SEGMENT CREATION IMMEDIATE
NOCOMPRESS LOGGING
TABLESPACE "API_GRAD_DATA" NO INMEMORY ;


CREATE INDEX IDX_GRADUATION_STUDENT_RECORD_ID
ON STUDENT_COURSE ("GRADUATION_STUDENT_RECORD_ID")
TABLESPACE "API_GRAD_IDX"

0 comments on commit 38c74cb

Please sign in to comment.