From 5d0fc5c33dd8086c5e848ad03a81738ba22078ea Mon Sep 17 00:00:00 2001 From: stronk7 Date: Thu, 26 Oct 2006 22:46:02 +0000 Subject: [PATCH] Deprecating old "upgrade" files. MDL-7214 Merged from MOODLE_17_STABLE --- backup/db/postgres7.php | 22 ++++++-------------- blocks/activity_modules/db/postgres7.php | 21 ++++++------------- blocks/admin/db/postgres7.php | 21 ++++++------------- blocks/calendar_month/db/postgres7.php | 21 ++++++------------- blocks/calendar_upcoming/db/postgres7.php | 21 ++++++------------- blocks/course_list/db/postgres7.php | 21 ++++++------------- blocks/course_summary/db/postgres7.php | 21 ++++++------------- blocks/db/postgres7.php | 21 ++++++------------- blocks/news_items/db/postgres7.php | 21 ++++++------------- blocks/online_users/db/postgres7.php | 21 ++++++------------- blocks/participants/db/postgres7.php | 21 ++++++------------- blocks/recent_activity/db/postgres7.php | 21 ++++++------------- blocks/rss_client/db/postgres7.php | 11 ++++++++-- blocks/search/db/postgres7.php | 21 ++++++------------- blocks/search_forums/db/postgres7.php | 21 ++++++------------- blocks/section_links/db/postgres7.php | 21 ++++++------------- blocks/social_activities/db/postgres7.php | 21 ++++++------------- enrol/authorize/db/postgres7.php | 7 +++++++ enrol/paypal/db/postgres7.php | 7 +++++++ mod/assignment/db/postgres7.php | 7 +++++++ mod/chat/db/postgres7.php | 7 +++++++ mod/choice/db/postgres7.php | 8 +++++++ mod/data/db/postgres7.php | 9 +++++++- mod/exercise/db/postgres7.php | 9 +++++++- mod/forum/db/postgres7.php | 9 +++++++- mod/hotpot/db/postgres7.php | 8 +++++++ mod/journal/db/postgres7.php | 7 +++++++ mod/label/db/postgres7.php | 7 +++++++ mod/lams/db/postgres7.php | 7 +++++++ mod/lesson/db/postgres7.php | 7 +++++++ mod/quiz/db/postgres7.php | 7 +++++++ mod/resource/db/postgres7.php | 7 +++++++ mod/scorm/db/postgres7.php | 7 +++++++ mod/survey/db/postgres7.php | 8 +++++++ mod/wiki/db/postgres7.php | 7 +++++++ mod/workshop/db/postgres7.php | 7 +++++++ question/type/calculated/db/postgres7.php | 7 +++++++ question/type/essay/db/postgres7.php | 7 +++++++ question/type/match/db/postgres7.php | 7 +++++++ question/type/multianswer/db/postgres7.php | 7 +++++++ question/type/multichoice/db/postgres7.php | 9 +++++++- question/type/numerical/db/postgres7.php | 7 +++++++ question/type/randomsamatch/db/postgres7.php | 7 +++++++ question/type/rqp/db/postgres7.php | 7 +++++++ question/type/shortanswer/db/postgres7.php | 7 +++++++ question/type/truefalse/db/postgres7.php | 7 +++++++ 46 files changed, 315 insertions(+), 247 deletions(-) diff --git a/backup/db/postgres7.php b/backup/db/postgres7.php index 3afe71539c..87fa622507 100644 --- a/backup/db/postgres7.php +++ b/backup/db/postgres7.php @@ -1,21 +1,9 @@ \ No newline at end of file +?> diff --git a/blocks/search/db/postgres7.php b/blocks/search/db/postgres7.php index 82a259940d..d4729fe687 100644 --- a/blocks/search/db/postgres7.php +++ b/blocks/search/db/postgres7.php @@ -1,20 +1,9 @@ prefix}enrol_authorize ADD CONSTRAINT enroauth_pay_ck CHECK (paymentmethod IN ('cc', 'echeck'))", true); } + ////// DO NOT ADD NEW THINGS HERE!! USE upgrade.php and the lib/ddllib.php functions. + return $result; } diff --git a/enrol/paypal/db/postgres7.php b/enrol/paypal/db/postgres7.php index 132a8fac9c..35768f70e5 100644 --- a/enrol/paypal/db/postgres7.php +++ b/enrol/paypal/db/postgres7.php @@ -1,5 +1,10 @@ dirroot/mod/assignment/lib.php"); assignment_upgrade_submodules(); + ////// DO NOT ADD NEW THINGS HERE!! USE upgrade.php and the lib/ddllib.php functions. + return true; } diff --git a/mod/chat/db/postgres7.php b/mod/chat/db/postgres7.php index 5dbab31c54..f3b6f0a27e 100644 --- a/mod/chat/db/postgres7.php +++ b/mod/chat/db/postgres7.php @@ -1,5 +1,10 @@ prefix}data_content ALTER COLUMN content4 DROP NOT NULL"); execute_sql("ALTER TABLE {$CFG->prefix}data_content ALTER COLUMN content4 DROP DEFAULT"); } - + + ////// DO NOT ADD NEW THINGS HERE!! USE upgrade.php and the lib/ddllib.php functions. + return true; } diff --git a/mod/exercise/db/postgres7.php b/mod/exercise/db/postgres7.php index adf6d9556e..d77f49b8ce 100644 --- a/mod/exercise/db/postgres7.php +++ b/mod/exercise/db/postgres7.php @@ -1,5 +1,10 @@ \ No newline at end of file +?> diff --git a/mod/hotpot/db/postgres7.php b/mod/hotpot/db/postgres7.php index 1dd41f921e..bda3cf9252 100644 --- a/mod/hotpot/db/postgres7.php +++ b/mod/hotpot/db/postgres7.php @@ -1,4 +1,10 @@ diff --git a/mod/journal/db/postgres7.php b/mod/journal/db/postgres7.php index ddb2ae4314..1fa74e6312 100644 --- a/mod/journal/db/postgres7.php +++ b/mod/journal/db/postgres7.php @@ -1,5 +1,10 @@ update( 'resource','alltext','options' ); } + ////// DO NOT ADD NEW THINGS HERE!! USE upgrade.php and the lib/ddllib.php functions. + return true; } diff --git a/mod/scorm/db/postgres7.php b/mod/scorm/db/postgres7.php index a4d9a60a72..9398ad729a 100755 --- a/mod/scorm/db/postgres7.php +++ b/mod/scorm/db/postgres7.php @@ -1,5 +1,10 @@ prefix}log_display (module, action, mtable, field) VALUES ('scorm', 'review', 'scorm', 'name');", false); } + ////// DO NOT ADD NEW THINGS HERE!! USE upgrade.php and the lib/ddllib.php functions. + return true; } ?> diff --git a/mod/survey/db/postgres7.php b/mod/survey/db/postgres7.php index eea3fc3e10..c700f50df1 100644 --- a/mod/survey/db/postgres7.php +++ b/mod/survey/db/postgres7.php @@ -1,5 +1,10 @@ prefix.'survey_id_seq\', (select max(id) from '.$CFG->prefix.'survey))'); execute_sql('SELECT setval(\''.$CFG->prefix.'survey_questions_id_seq\', (select max(id) from '.$CFG->prefix.'survey_questions))'); } + + ////// DO NOT ADD NEW THINGS HERE!! USE upgrade.php and the lib/ddllib.php functions. + return true; } diff --git a/mod/wiki/db/postgres7.php b/mod/wiki/db/postgres7.php index b0ca05be88..babb6edac8 100644 --- a/mod/wiki/db/postgres7.php +++ b/mod/wiki/db/postgres7.php @@ -1,5 +1,10 @@