-
Sub-task
-
Resolution: Fixed
-
Blocker
-
2.0, 2.0.1, 2.1.8, 2.2.5
-
PostgreSQL 8.4.6 (I've no way to test it on MySQL)
-
PostgreSQL
-
MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE
-
MOODLE_21_STABLE, MOODLE_22_STABLE
-
In sites currently using 1.9.x, that have been originally installed with < 1.7 and then upgraded to 1.9 (even passing through 1.8), the mdl_user table have many NULLable columns without DEFAULTs.
This will cause upgrading to 2.0.x failing due to db errors.
-----------------------------------------------------------------
I attached a simple SQL script that add DEFAULTs and sets NOT NULLs, as a freshly installed 1.9.x (please edit to change table prefix)
- has a non-specific relationship to
-
MDL-27243 Upgrade to 2.0.2 fails if certain fields are null in user or resource table
- Closed
-
MDL-38003 Sites installed with Moodle version < 1.7 using Postgres have null database columns
- Closed
-
MDL-38015 XMLDB default value check for mdl_user.secret doesn't work with Postgres 8.4
- Closed
- is duplicated by
-
MDL-30365 Upgrading from early 1.9.x to 2.1.2+ fails on null records
- Closed
- will help resolve
-
MDL-25894 Upgrade 1.9.x -> 2.0 fails: column "city " contains null values
- Closed
-
MDL-25893 Upgrade 1.9.x -> 2.0 fails: column "lastip" contains null values
- Closed