From 4f5b07317d202dca6bace2540e701670d27b6f66 Mon Sep 17 00:00:00 2001 From: githubmamatha Date: Tue, 28 Nov 2023 10:56:04 -0800 Subject: [PATCH] Gard2-2406 Adding missing index X_OPTPROG_GRADSTUDID to GRAD PROD --- ..._CREATE_INDEX_TABLE-STUDENT_OPTIONAL_PROGRAM.sql | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 api/src/main/resources/db/migration/1.0/V1.0.59__DDL-DROP_CREATE_INDEX_TABLE-STUDENT_OPTIONAL_PROGRAM.sql diff --git a/api/src/main/resources/db/migration/1.0/V1.0.59__DDL-DROP_CREATE_INDEX_TABLE-STUDENT_OPTIONAL_PROGRAM.sql b/api/src/main/resources/db/migration/1.0/V1.0.59__DDL-DROP_CREATE_INDEX_TABLE-STUDENT_OPTIONAL_PROGRAM.sql new file mode 100644 index 00000000..abcb8a53 --- /dev/null +++ b/api/src/main/resources/db/migration/1.0/V1.0.59__DDL-DROP_CREATE_INDEX_TABLE-STUDENT_OPTIONAL_PROGRAM.sql @@ -0,0 +1,13 @@ +BEGIN +EXECUTE IMMEDIATE 'DROP INDEX X_OPTPROG_GRADSTUDID'; +EXCEPTION + WHEN OTHERS THEN + IF SQLCODE != -1418 THEN + RAISE; +END IF; +END; +/ + +CREATE INDEX X_OPTPROG_GRADSTUDID + ON STUDENT_OPTIONAL_PROGRAM (GRADUATION_STUDENT_RECORD_ID) + TABLESPACE API_GRAD_IDX; \ No newline at end of file