From ee234b5cac2498c0ee390993460ae4d98921e7c9 Mon Sep 17 00:00:00 2001 From: mjollnir_ Date: Tue, 18 Apr 2006 02:50:46 +0000 Subject: [PATCH] Putting back in the fix for authorize enrol plugin not originally having correct pg version number and table sync with mysql tables and version number --- enrol/authorize/db/postgres7.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/enrol/authorize/db/postgres7.php b/enrol/authorize/db/postgres7.php index ec7878eb45..1e006f98d7 100644 --- a/enrol/authorize/db/postgres7.php +++ b/enrol/authorize/db/postgres7.php @@ -8,6 +8,17 @@ function enrol_authorize_upgrade($oldversion=0) { $result = true; + if (!$tables = $db->MetaColumns($CFG->prefix . 'enrol_authorize')) { + $installfirst = true; + } + + if ($oldversion == 0 || !empty($installfirst)) { // First time install + $result = modify_database("$CFG->dirroot/enrol/authorize/db/postgres7.sql"); + return $result; // RETURN, sql file contains last upgrades. + } + + // Authorize module was installed before. Upgrades must be applied to SQL file. + if ($oldversion < 2005071602) { notify("If you are using the authorize.net enrolment plugin for credit card handling, please ensure that you have turned loginhttps ON in Admin >> Variables >> Security."); -- 2.39.5