From: stronk7 Date: Thu, 26 Oct 2006 22:46:02 +0000 (+0000) Subject: Deprecating old "upgrade" files. MDL-7214 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=5d0fc5c33dd8086c5e848ad03a81738ba22078ea;p=moodle.git Deprecating old "upgrade" files. MDL-7214 Merged from MOODLE_17_STABLE --- 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 @@