diff --git a/api/src/main/resources/db/migration/1.0/V1.0.88__DDL-ALTER_TABLE-LETTER_GRADE.sql b/api/src/main/resources/db/migration/1.0/V1.0.88__DDL-ALTER_TABLE-LETTER_GRADE.sql new file mode 100644 index 0000000..38cc476 --- /dev/null +++ b/api/src/main/resources/db/migration/1.0/V1.0.88__DDL-ALTER_TABLE-LETTER_GRADE.sql @@ -0,0 +1 @@ +ALTER TABLE LETTER_GRADE ADD EFFECTIVE_DATE DATE DEFAULT TO_DATE('2024-07-01', 'YYYY-MM-DD') NOT NULL; \ No newline at end of file diff --git a/api/src/main/resources/db/migration/1.0/V1.0.89__DML-UPDATE_TABLE-LETTER_GRADE.sql b/api/src/main/resources/db/migration/1.0/V1.0.89__DML-UPDATE_TABLE-LETTER_GRADE.sql new file mode 100644 index 0000000..268f667 --- /dev/null +++ b/api/src/main/resources/db/migration/1.0/V1.0.89__DML-UPDATE_TABLE-LETTER_GRADE.sql @@ -0,0 +1,63 @@ +UPDATE LETTER_GRADE +SET UPDATE_USER='API_STUDENT_GRADUATION' , UPDATE_DATE=SYSTIMESTAMP , EFFECTIVE_DATE=TIMESTAMP'1940-01-01 00:00:00.0' +WHERE LETTER_GRADE='A'; + +UPDATE LETTER_GRADE +SET UPDATE_USER='API_STUDENT_GRADUATION' , UPDATE_DATE=SYSTIMESTAMP , EFFECTIVE_DATE=TIMESTAMP'1940-01-01 00:00:00.0' +WHERE LETTER_GRADE='B'; + +UPDATE LETTER_GRADE +SET UPDATE_USER='API_STUDENT_GRADUATION' , UPDATE_DATE=SYSTIMESTAMP , EFFECTIVE_DATE=TIMESTAMP'1940-01-01 00:00:00.0' +WHERE LETTER_GRADE='C+'; + +UPDATE LETTER_GRADE +SET UPDATE_USER='API_STUDENT_GRADUATION' , UPDATE_DATE=SYSTIMESTAMP , EFFECTIVE_DATE=TIMESTAMP'1940-01-01 00:00:00.0' +WHERE LETTER_GRADE='C'; + +UPDATE LETTER_GRADE +SET UPDATE_USER='API_STUDENT_GRADUATION' , UPDATE_DATE=SYSTIMESTAMP , EFFECTIVE_DATE=TIMESTAMP'1940-01-01 00:00:00.0' +WHERE LETTER_GRADE='C-'; + +UPDATE LETTER_GRADE +SET UPDATE_USER='API_STUDENT_GRADUATION' , UPDATE_DATE=SYSTIMESTAMP , EFFECTIVE_DATE=TIMESTAMP'1940-01-01 00:00:00.0' +WHERE LETTER_GRADE='F'; + +UPDATE LETTER_GRADE +SET UPDATE_USER='API_STUDENT_GRADUATION' , UPDATE_DATE=SYSTIMESTAMP , EFFECTIVE_DATE=TIMESTAMP'1940-01-01 00:00:00.0' +WHERE LETTER_GRADE='I'; + +UPDATE LETTER_GRADE +SET UPDATE_USER='API_STUDENT_GRADUATION' , UPDATE_DATE=SYSTIMESTAMP , EFFECTIVE_DATE=TIMESTAMP'2006-09-01 00:00:00.0' +WHERE LETTER_GRADE='NM'; + +UPDATE LETTER_GRADE +SET UPDATE_USER='API_STUDENT_GRADUATION' , UPDATE_DATE=SYSTIMESTAMP , EFFECTIVE_DATE=TIMESTAMP'1940-01-01 00:00:00.0', EXPIRY_DATE=TIMESTAMP'1994-08-31 00:00:00.0' +WHERE LETTER_GRADE='P'; + +UPDATE LETTER_GRADE +SET UPDATE_USER='API_STUDENT_GRADUATION' , UPDATE_DATE=SYSTIMESTAMP , EFFECTIVE_DATE=TIMESTAMP'2007-09-01 00:00:00.0', EXPIRY_DATE=TIMESTAMP'2021-07-31 00:00:00.0' +WHERE LETTER_GRADE='RM'; + +UPDATE LETTER_GRADE +SET UPDATE_USER='API_STUDENT_GRADUATION' , UPDATE_DATE=SYSTIMESTAMP , EFFECTIVE_DATE=TIMESTAMP'1940-01-01 00:00:00.0' +WHERE LETTER_GRADE='SG'; + +UPDATE LETTER_GRADE +SET UPDATE_USER='API_STUDENT_GRADUATION' , UPDATE_DATE=SYSTIMESTAMP , EFFECTIVE_DATE=TIMESTAMP'1940-01-01 00:00:00.0' +WHERE LETTER_GRADE='TS'; + +UPDATE LETTER_GRADE +SET UPDATE_USER='API_STUDENT_GRADUATION' , UPDATE_DATE=SYSTIMESTAMP , EFFECTIVE_DATE=TIMESTAMP'1940-01-01 00:00:00.0' +WHERE LETTER_GRADE='W'; + +UPDATE LETTER_GRADE +SET UPDATE_USER='API_STUDENT_GRADUATION' , UPDATE_DATE=SYSTIMESTAMP , EFFECTIVE_DATE=TIMESTAMP'1940-01-01 00:00:00.0', EXPIRY_DATE=TIMESTAMP'1994-08-31 00:00:00.0' +WHERE LETTER_GRADE='WF'; + +UPDATE LETTER_GRADE +SET UPDATE_USER='API_STUDENT_GRADUATION' , UPDATE_DATE=SYSTIMESTAMP , EFFECTIVE_DATE=TIMESTAMP'2007-09-01 00:00:00.0' +WHERE LETTER_GRADE='WR'; + +UPDATE LETTER_GRADE +SET UPDATE_USER='API_STUDENT_GRADUATION' , UPDATE_DATE=SYSTIMESTAMP , EFFECTIVE_DATE=TIMESTAMP'1994-09-01 00:00:00.0', EXPIRY_DATE=TIMESTAMP'1997-08-31 00:00:00.0' +WHERE LETTER_GRADE='IP';