We are upgrading our moodle installation with 2.0.4 (preview) release below is the existing environment.
Windows 2003 SP2 32bit
MSSQL 2005 SP2
ALL PHP requirements are fine but upgarade is failing, and if we enable DEBUGING it throw below error.
mod_data
Debug info: The data types ntext and varchar are incompatible in the not equal to operator.
SELECT COUNT('x') FROM mdl_data_content c
JOIN mdl_data_fields f ON f.id = c.fieldid
JOIN mdl_data_records r ON r.id = c.recordid
JOIN mdl_data d ON d.id = r.dataid
JOIN mdl_modules m ON m.name = 'data'
JOIN mdl_course_modules cm ON (cm.module = m.id AND cm.instance = d.id)
WHERE c.content <> '' AND c.content IS NOT NULL
AND (f.type = 'file' OR f.type = 'picture')
[array (
)]
SELECT COUNT('x') FROM mdl_data_content c
JOIN mdl_data_fields f ON f.id = c.fieldid
JOIN mdl_data_records r ON r.id = c.recordid
JOIN mdl_data d ON d.id = r.dataid
JOIN mdl_modules m ON m.name = 'data'
JOIN mdl_course_modules cm ON (cm.module = m.id AND cm.instance = d.id)
WHERE c.content <> '' AND c.content IS NOT NULL
AND (f.type = 'file' OR f.type = 'picture')
[array (
)]
Stack trace:
Any help on this is appreciated - line 378 of \lib\dml\moodle_database.php: dml_read_exception thrown
- line 245 of \lib\dml\mssql_native_moodle_database.php: call to moodle_database->query_end()
- line 692 of \lib\dml\mssql_native_moodle_database.php: call to mssql_native_moodle_database->query_end()
- line 721 of \lib\dml\mssql_native_moodle_database.php: call to mssql_native_moodle_database->get_recordset_sql()
- line 1216 of \lib\dml\moodle_database.php: call to mssql_native_moodle_database->get_records_sql()
- line 1291 of \lib\dml\moodle_database.php: call to moodle_database->get_record_sql()
- line 1462 of \lib\dml\moodle_database.php: call to moodle_database->get_field_sql()
- line 91 of \mod\data\db\upgrade.php: call to moodle_database->count_records_sql()
- line 510 of \lib\upgradelib.php: call to xmldb_data_upgrade()
- line 294 of \lib\upgradelib.php: call to upgrade_plugins_modules()
- line 1277 of \lib\upgradelib.php: call to upgrade_plugins()
- line 260 of \admin\index.php: call to upgrade_noncore()
Thanks in advance.
Khushal Singh