diff --git a/backup/db/postgres7.php b/backup/db/postgres7.php index 3afe71539ce..87fa622507e 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 82a259940d6..d4729fe687f 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 132a8fac9cc..35768f70e50 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 5dbab31c547..f3b6f0a27e7 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 adf6d9556e8..d77f49b8cee 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 1dd41f921e9..bda3cf92529 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 ddb2ae43142..1fa74e6312f 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 a4d9a60a72c..9398ad729af 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 eea3fc3e109..c700f50df15 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 b0ca05be881..babb6edac8e 100644 --- a/mod/wiki/db/postgres7.php +++ b/mod/wiki/db/postgres7.php @@ -1,5 +1,10 @@