Since there was no pg support for enrol/authorize until later, the versioning was screwey in postgres, so check the table exists first before trying to add columns to it, create it if it is not there
This commit is contained in:
@@ -7,7 +7,11 @@ function authorize_upgrade($oldversion=0) {
|
||||
|
||||
$result = true;
|
||||
|
||||
if ($oldversion == 0) {
|
||||
if (!$tables = $db->MetaColumns($CFG->prefix . 'enrol_authorize')) {
|
||||
$installfirst = true;
|
||||
}
|
||||
|
||||
if ($oldversion == 0 || !empty($installfirst)) {
|
||||
modify_database("$CFG->dirroot/enrol/authorize/db/postgres7.sql");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user