From 0d5e82b865fcff8ce52f2ad1e93968cd31fa1d93 Mon Sep 17 00:00:00 2001 From: "Code Hugger (Matthew Jones)" Date: Mon, 17 Jul 2017 08:39:10 -0500 Subject: [PATCH] SAK-32703 - Sync up Sakai 11.3-11.5 conversion scripts (#4615) --- .../sakai_11_3-11_4_mysql_conversion.sql | 5 +++++ .../sakai_11_3-11_4_oracle_conversion.sql | 5 +++++ .../sakai_11_4-11_5_mysql_conversion.sql | 16 ++++++++++++++++ .../sakai_11_4-11_5_oracle_conversion.sql | 16 ++++++++++++++++ .../conversion/sakai_12_mysql_conversion.sql | 16 ---------------- .../conversion/sakai_12_oracle_conversion.sql | 16 ---------------- 6 files changed, 42 insertions(+), 32 deletions(-) create mode 100644 reference/docs/conversion/sakai_11_3-11_4_mysql_conversion.sql create mode 100644 reference/docs/conversion/sakai_11_3-11_4_oracle_conversion.sql create mode 100644 reference/docs/conversion/sakai_11_4-11_5_mysql_conversion.sql create mode 100644 reference/docs/conversion/sakai_11_4-11_5_oracle_conversion.sql diff --git a/reference/docs/conversion/sakai_11_3-11_4_mysql_conversion.sql b/reference/docs/conversion/sakai_11_3-11_4_mysql_conversion.sql new file mode 100644 index 000000000000..790a21b4e7d2 --- /dev/null +++ b/reference/docs/conversion/sakai_11_3-11_4_mysql_conversion.sql @@ -0,0 +1,5 @@ +-- +-- SAK-31840 drop defaults as its now managed in the POJO +-- +alter table GB_GRADABLE_OBJECT_T alter column IS_EXTRA_CREDIT drop default; +alter table GB_GRADABLE_OBJECT_T alter column HIDE_IN_ALL_GRADES_TABLE drop default; diff --git a/reference/docs/conversion/sakai_11_3-11_4_oracle_conversion.sql b/reference/docs/conversion/sakai_11_3-11_4_oracle_conversion.sql new file mode 100644 index 000000000000..bf5f998b5c7a --- /dev/null +++ b/reference/docs/conversion/sakai_11_3-11_4_oracle_conversion.sql @@ -0,0 +1,5 @@ +-- +-- SAK-31840 drop defaults as its now managed in the POJO +-- +ALTER TABLE GB_GRADABLE_OBJECT_T MODIFY IS_EXTRA_CREDIT DEFAULT NULL; +ALTER TABLE GB_GRADABLE_OBJECT_T MODIFY HIDE_IN_ALL_GRADES_TABLE DEFAULT NULL; diff --git a/reference/docs/conversion/sakai_11_4-11_5_mysql_conversion.sql b/reference/docs/conversion/sakai_11_4-11_5_mysql_conversion.sql new file mode 100644 index 000000000000..9b3b81302692 --- /dev/null +++ b/reference/docs/conversion/sakai_11_4-11_5_mysql_conversion.sql @@ -0,0 +1,16 @@ +-- SAM-3012 Update samigo events +-- Update camel case events +UPDATE SAKAI_EVENT SET EVENT = 'sam.assessment.submit' WHERE EVENT = 'sam.assessmentSubmitted'; +UPDATE SAKAI_EVENT SET EVENT = 'sam.assessment.graded.auto' WHERE EVENT = 'sam.assessmentAutoGraded'; +UPDATE SAKAI_EVENT SET EVENT = 'sam.assessment.submit.auto"' WHERE EVENT = 'sam.assessmentAutoSubmitted'; +UPDATE SAKAI_EVENT SET EVENT = 'sam.assessment.submit.timer.thrd' WHERE EVENT = 'sam.assessmentTimedSubmitted'; +UPDATE SAKAI_EVENT SET EVENT = 'sam.pubassessment.remove' WHERE EVENT = 'sam.pubAssessment.remove'; + +-- Update name of submission events +UPDATE SAKAI_EVENT SET EVENT = 'sam.assessment.submit.from_last' WHERE EVENT = 'sam.submit.from_last_page'; +UPDATE SAKAI_EVENT SET EVENT = 'sam.assessment.submit.from_toc' WHERE EVENT = 'sam.submit.from_toc'; +UPDATE SAKAI_EVENT SET EVENT = 'sam.assessment.submit.thread' WHERE EVENT = 'sam.assessment.thread_submit'; +UPDATE SAKAI_EVENT SET EVENT = 'sam.assessment.submit.timer' WHERE EVENT = 'sam.assessment.timer_submit'; +UPDATE SAKAI_EVENT SET EVENT = 'sam.assessment.submit.timer.url' WHERE EVENT = 'sam.assessment.timer_submit.url'; + +-- END SAM-3012 Update samigo events diff --git a/reference/docs/conversion/sakai_11_4-11_5_oracle_conversion.sql b/reference/docs/conversion/sakai_11_4-11_5_oracle_conversion.sql new file mode 100644 index 000000000000..b80cdb946cf8 --- /dev/null +++ b/reference/docs/conversion/sakai_11_4-11_5_oracle_conversion.sql @@ -0,0 +1,16 @@ +-- SAM-3012 - Update samigo events +-- Update camel case events +UPDATE SAKAI_EVENT SET EVENT = 'sam.assessment.submit' WHERE EVENT = 'sam.assessmentSubmitted'; +UPDATE SAKAI_EVENT SET EVENT = 'sam.assessment.graded.auto' WHERE EVENT = 'sam.assessmentAutoGraded'; +UPDATE SAKAI_EVENT SET EVENT = 'sam.assessment.submit.auto"' WHERE EVENT = 'sam.assessmentAutoSubmitted'; +UPDATE SAKAI_EVENT SET EVENT = 'sam.assessment.submit.timer.thrd' WHERE EVENT = 'sam.assessmentTimedSubmitted'; +UPDATE SAKAI_EVENT SET EVENT = 'sam.pubassessment.remove' WHERE EVENT = 'sam.pubAssessment.remove'; + +-- Update name of submission events +UPDATE SAKAI_EVENT SET EVENT = 'sam.assessment.submit.from_last' WHERE EVENT = 'sam.submit.from_last_page'; +UPDATE SAKAI_EVENT SET EVENT = 'sam.assessment.submit.from_toc' WHERE EVENT = 'sam.submit.from_toc'; +UPDATE SAKAI_EVENT SET EVENT = 'sam.assessment.submit.thread' WHERE EVENT = 'sam.assessment.thread_submit'; +UPDATE SAKAI_EVENT SET EVENT = 'sam.assessment.submit.timer' WHERE EVENT = 'sam.assessment.timer_submit'; +UPDATE SAKAI_EVENT SET EVENT = 'sam.assessment.submit.timer.url' WHERE EVENT = 'sam.assessment.timer_submit.url'; + +-- END SAM-3012 diff --git a/reference/docs/conversion/sakai_12_mysql_conversion.sql b/reference/docs/conversion/sakai_12_mysql_conversion.sql index d0109f0de351..f6acfc1079e2 100644 --- a/reference/docs/conversion/sakai_12_mysql_conversion.sql +++ b/reference/docs/conversion/sakai_12_mysql_conversion.sql @@ -428,19 +428,3 @@ alter table lti_tools drop column allowlori; drop table lti_mapping; -- END SAK-32442 --- SAM-3012 Update samigo events --- Update camel case events -UPDATE SAKAI_EVENT SET EVENT = 'sam.assessment.submit' WHERE EVENT = 'sam.assessmentSubmitted'; -UPDATE SAKAI_EVENT SET EVENT = 'sam.assessment.graded.auto' WHERE EVENT = 'sam.assessmentAutoGraded'; -UPDATE SAKAI_EVENT SET EVENT = 'sam.assessment.submit.auto"' WHERE EVENT = 'sam.assessmentAutoSubmitted'; -UPDATE SAKAI_EVENT SET EVENT = 'sam.assessment.submit.timer.thrd' WHERE EVENT = 'sam.assessmentTimedSubmitted'; -UPDATE SAKAI_EVENT SET EVENT = 'sam.pubassessment.remove' WHERE EVENT = 'sam.pubAssessment.remove'; - --- Update name of submission events -UPDATE SAKAI_EVENT SET EVENT = 'sam.assessment.submit.from_last' WHERE EVENT = 'sam.submit.from_last_page'; -UPDATE SAKAI_EVENT SET EVENT = 'sam.assessment.submit.from_toc' WHERE EVENT = 'sam.submit.from_toc'; -UPDATE SAKAI_EVENT SET EVENT = 'sam.assessment.submit.thread' WHERE EVENT = 'sam.assessment.thread_submit'; -UPDATE SAKAI_EVENT SET EVENT = 'sam.assessment.submit.timer' WHERE EVENT = 'sam.assessment.timer_submit'; -UPDATE SAKAI_EVENT SET EVENT = 'sam.assessment.submit.timer.url' WHERE EVENT = 'sam.assessment.timer_submit.url'; - --- END SAM-3012 Update samigo events diff --git a/reference/docs/conversion/sakai_12_oracle_conversion.sql b/reference/docs/conversion/sakai_12_oracle_conversion.sql index bd02ba4335e8..cbb7f6a837cc 100644 --- a/reference/docs/conversion/sakai_12_oracle_conversion.sql +++ b/reference/docs/conversion/sakai_12_oracle_conversion.sql @@ -488,19 +488,3 @@ alter table lti_tools drop column allowlori; drop table lti_mapping -- END SAK-32442 --- SAM-3012 - Update samigo events --- Update camel case events -UPDATE SAKAI_EVENT SET EVENT = 'sam.assessment.submit' WHERE EVENT = 'sam.assessmentSubmitted'; -UPDATE SAKAI_EVENT SET EVENT = 'sam.assessment.graded.auto' WHERE EVENT = 'sam.assessmentAutoGraded'; -UPDATE SAKAI_EVENT SET EVENT = 'sam.assessment.submit.auto"' WHERE EVENT = 'sam.assessmentAutoSubmitted'; -UPDATE SAKAI_EVENT SET EVENT = 'sam.assessment.submit.timer.thrd' WHERE EVENT = 'sam.assessmentTimedSubmitted'; -UPDATE SAKAI_EVENT SET EVENT = 'sam.pubassessment.remove' WHERE EVENT = 'sam.pubAssessment.remove'; - --- Update name of submission events -UPDATE SAKAI_EVENT SET EVENT = 'sam.assessment.submit.from_last' WHERE EVENT = 'sam.submit.from_last_page'; -UPDATE SAKAI_EVENT SET EVENT = 'sam.assessment.submit.from_toc' WHERE EVENT = 'sam.submit.from_toc'; -UPDATE SAKAI_EVENT SET EVENT = 'sam.assessment.submit.thread' WHERE EVENT = 'sam.assessment.thread_submit'; -UPDATE SAKAI_EVENT SET EVENT = 'sam.assessment.submit.timer' WHERE EVENT = 'sam.assessment.timer_submit'; -UPDATE SAKAI_EVENT SET EVENT = 'sam.assessment.submit.timer.url' WHERE EVENT = 'sam.assessment.timer_submit.url'; - --- END SAM-3012