I have tried to upgrade (a copy of) our
Moodle 1.9.10+ (Build: 20110125)
site to 2.1, unsuccessfully.
I get an error during the upgrade, quite early on:
ORA-01400: cannot insert NULL into ("RESTOREDMOODLEDB"."MDBLOCK_POSITIONS"."SUBPAGE")
( see : http://www.pastebucket.com/Code/Details/195)
We are using Oracle as a backend for this system. We tested 2.0 with Oracle and had numerous issues, so have remained on 1.9.
a little more digging suggests that Oracle's stellar approach to ansi means that
'' is interpreted as NULL in a varchar field
(http://stackoverflow.com/questions/203493/why-does-oracle-9i-treat-an-empty-string-as-null)
hence the ELSE clause is trying to put NULL into a NOT NULL field in the database
I am unsure what behaviour is looked for from
MDBLOCK_POSITIONS.SUBPAGE = ''
so I am not comfortable trying to replace this to see if it would move things along.
any thoughts gratefully received