mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Deprecating old "upgrade" files. MDL-7214
Merged from MOODLE_17_STABLE
This commit is contained in:
parent
3aac1dc9a0
commit
5d0fc5c33d
46 changed files with 315 additions and 247 deletions
|
@ -1,5 +1,10 @@
|
|||
<?php //$Id$
|
||||
|
||||
// THIS FILE IS DEPRECATED! PLEASE DO NOT MAKE CHANGES TO IT!
|
||||
//
|
||||
// IT IS USED ONLY FOR UPGRADES FROM BEFORE MOODLE 1.7, ALL
|
||||
// LATER CHANGES SHOULD USE upgrade.php IN THIS DIRECTORY.
|
||||
|
||||
// PostgreSQL commands for upgrading this enrolment module
|
||||
|
||||
function enrol_authorize_upgrade($oldversion=0) {
|
||||
|
@ -144,6 +149,8 @@ function enrol_authorize_upgrade($oldversion=0) {
|
|||
execute_sql("ALTER TABLE {$CFG->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;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
<?PHP //$Id$
|
||||
|
||||
// THIS FILE IS DEPRECATED! PLEASE DO NOT MAKE CHANGES TO IT!
|
||||
//
|
||||
// IT IS USED ONLY FOR UPGRADES FROM BEFORE MOODLE 1.7, ALL
|
||||
// LATER CHANGES SHOULD USE upgrade.php IN THIS DIRECTORY.
|
||||
|
||||
// PostgreSQL commands for upgrading this enrolment module
|
||||
|
||||
function enrol_paypal_upgrade($oldversion=0) {
|
||||
|
@ -8,6 +13,8 @@ function enrol_paypal_upgrade($oldversion=0) {
|
|||
|
||||
$result = true;
|
||||
|
||||
////// DO NOT ADD NEW THINGS HERE!! USE upgrade.php and the lib/ddllib.php functions.
|
||||
|
||||
return $result;
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue