Quantcast
Channel: Installing and upgrading help
Viewing all articles
Browse latest Browse all 46762

Upgrade error from 2.2.4+ to 2.5.1 (Default exception handler: DDL sql execution error Debug: Out of range value for column 'timeavailable' at row ....)

$
0
0
by Jerry Lau.  

Hello,

I tried to run the upgrade via CLI and this is the error I got immediately .

 

Default exception handler: DDL sql execution error Debug: Out of range value for column 'timeavailable' at row 268

For details see below...

What do I need to do? Should I upgrade to the latest 2.2.x first then upgrade to 2.5.1?

 

 

 

sudo -u apache /usr/bin/php /var/www/html/moodle/admin/cli/upgrade.php

PHP Warning:  mysqli::mysqli(): Headers and client library minor version mismatch. Headers:50169 Library:50312 in /var/www/html/moodle/lib/dml/

mysqli_native_moodle_database.php on line 384
== Upgrading Moodle database from version 2.2.4+ (Build: 20120719) (2012030100.01) to 2.5.1+ (Build: 20130712) (2013051401.02) ==

Your Moodle files have been changed, and you are about to automatically
upgrade your server to this version:

 2.5.1+ (BUILD: 20130712) (2013051401.02)

 Once you do this you can not go back again.

 Please note that this process can take a long time.

 Are you sure you want to upgrade this server to this version?
type y (means yes) or n (means no)
: y
-->System
Default exception handler: DDL sql execution error Debug: Out of range value for column 'timeavailable' at row 268
ALTER TABLE `mdl_assignment` MODIFY COLUMN `id` bigint(10) signed NOT NULL  AUTO_INCREMENT, MODIFY COLUMN `course` bigint(10) signed NOT NULL DEFAULT '0' , MODIFY COLUMN `intro` LONGTEXT NOT NULL , MODIFY COLUMN `introformat` smallint(4) signed NOT NULL DEFAULT '0' , MODIFY COLUMN `resubmit` tinyint(2) signed NOT NULL DEFAULT '0' , MODIFY COLUMN `preventlate` tinyint(2) signed NOT NULL DEFAULT '0' , MODIFY COLUMN `emailteachers` tinyint(2) signed NOT NULL DEFAULT '0' , MODIFY COLUMN `maxbytes` bigint(10) signed NOT NULL DEFAULT '100000' , MODIFY COLUMN `timedue` bigint(10) signed NOT NULL DEFAULT '0' , MODIFY COLUMN `timeavailable` bigint(10) signed NOT NULL DEFAULT '0' , MODIFY COLUMN `timemodified` bigint(10) signed NOT NULL DEFAULT '0'
Error code: ddlexecuteerror
* line 429 of /lib/dml/moodle_database.php: ddl_change_structure_exception thrown
* line 842 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
* line 161 of /lib/db/upgradelib.php: call to mysqli_native_moodle_database->change_database_structure()
* line 233 of /lib/db/upgrade.php: call to upgrade_mysql_fix_unsigned_and_lob_columns()
* line 1540 of /lib/upgradelib.php: call to xmldb_main_upgrade()
* line 160 of /admin/cli/upgrade.php: call to upgrade_core()

!!! DDL sql execution error !!!
!! Out of range value for column 'timeavailable' at row 268
ALTER TABLE `mdl_assignment` MODIFY COLUMN `id` bigint(10) signed NOT NULL  AUTO_INCREMENT, MODIFY COLUMN `course` bigint(10) signed NOT NULL DEFAULT '0' , MODIFY COLUMN `intro` LONGTEXT NOT NULL , MODIFY COLUMN `introformat` smallint(4) signed NOT NULL DEFAULT '0' , MODIFY COLUMN `resubmit` tinyint(2) signed NOT NULL DEFAULT '0' , MODIFY COLUMN `preventlate` tinyint(2) signed NOT NULL DEFAULT '0' , MODIFY COLUMN `emailteachers` tinyint(2) signed NOT NULL DEFAULT '0' , MODIFY COLUMN `maxbytes` bigint(10) signed NOT NULL DEFAULT '100000' , MODIFY COLUMN `timedue` bigint(10) signed NOT NULL DEFAULT '0' , MODIFY COLUMN `timeavailable` bigint(10) signed NOT NULL DEFAULT '0' , MODIFY COLUMN `timemodified` bigint(10) signed NOT NULL DEFAULT '0'
Error code: ddlexecuteerror !!
!! Stack trace: * line 429 of /lib/dml/moodle_database.php: ddl_change_structure_exception thrown
* line 842 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
* line 161 of /lib/db/upgradelib.php: call to mysqli_native_moodle_database->change_database_structure()
* line 233 of /lib/db/upgrade.php: call to upgrade_mysql_fix_unsigned_and_lob_columns()
* line 1540 of /lib/upgradelib.php: call to xmldb_main_upgrade()
* line 160 of /admin/cli/upgrade.php: call to upgrade_core()
 !!
 

Viewing all articles
Browse latest Browse all 46762

Trending Articles