hit-moodle/moodle-local_onlinejudge — Issue #17: Problem when upgrading onlinejudge
Author: lchorbadjiev
Created: 2011-10-25 19:29:58+00:00
State: open

When upgrading moodle_local_onlinejudge to latest git version I get following error:

Debug info: ERROR: column "stdout" cannot be cast to type bytea
ALTER TABLE mdl_onlinejudge_tasks ALTER COLUMN stdout TYPE BYTEA
Stack trace:

line 400 of /lib/dml/moodle_database.php: ddl_change_structure_exception thrown
line 232 of /lib/dml/pgsql_native_moodle_database.php: call to moodle_database->query_end()
line 573 of /lib/dml/pgsql_native_moodle_database.php: call to pgsql_native_moodle_database->query_end()
line 88 of /lib/ddl/database_manager.php: call to pgsql_native_moodle_database->change_database_structure()
line 75 of /lib/ddl/database_manager.php: call to database_manager->execute_sql()
line 636 of /lib/ddl/database_manager.php: call to database_manager->execute_sql_arr()
line 58 of /local/onlinejudge/db/upgrade.php: call to database_manager->change_field_type()
line 385 of /lib/upgradelib.php: call to xmldb_local_onlinejudge_upgrade()
line 1466 of /lib/upgradelib.php: call to upgrade_plugins()
line 317 of /admin/index.php: call to upgrade_noncore()