Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.8.3
-
Fix Version/s: 1.8.4
-
Component/s: Database SQL/XMLDB
-
Labels:None
-
Environment:Postgres 8.1
-
Database:PostgreSQL
-
Affected Branches:MOODLE_18_STABLE
-
Fixed Branches:MOODLE_18_STABLE
Description
It probably only needs a "if (table_exists(...))" around the rebuild_course_cache() call in lib/db/upgrade.php (line 48).
Here is an upgrade log of a 1.6 to 1.8 upgrade without the rebuild_course_cache() calls commented out. I get errors like these:
(postgres7): DELETE FROM mdl_context_rel WHERE c2 = '1'
Warning: pg_query() [function.pg-query]: Query failed: ERROR: relation "mdl_context_rel" does not exist in /home/francois/code/private-moodle-r2/lib/adodb/drivers/adodb-postgres7.inc.php on line 115
-1: ERROR: relation "mdl_context_rel" does not exist
ADOConnection._Execute(DELETE FROM mdl_context_rel WHERE c2 = '1', false) % line 890, file: adodb.inc.php
ADOConnection.Execute(DELETE FROM mdl_context_rel WHERE c2 = '1') % line 1282, file: dmllib.php
delete_records(context_rel, c2, 1) % line 4077, file: accesslib.php
insert_context_rel(Object:stdClass) % line 1772, file: accesslib.php
create_context(70, 1260) % line 1986, file: accesslib.php
If you need any help testing this on Postgres, let me know.
Hi Francois,
I don't think rebuild_course_cache() would be touching the context_rel table. Could you please try to uninstall the facetoface module and try the upgrade from 1.6 to 1.8 again?
Cheers,
Yu