Upgrade error null value in column "numcolumns" violates not-null constraint
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
High
|
Robert Lyon |
Bug Description
We recently removed the numcolumns column from views as it is obsolete
But we get an error when upgrading from older versions of Mahara, eg 15.04 as the upgrade script wants to create a new view before the numcolumns column is removed form db but doesn't have a default value for it in lib/view.php
For example, we get this error:
Failed to get a recordset: postgres8 error: [-1: ERROR: null value in column "numcolumns" violates not-null constraint]
From calling the function install_
I'll add back in the default value for numcolumns into the lib/view.php file so that things will save correctly before the column is removed from db during upgrade.
Changed in mahara: | |
status: | New → In Progress |
Changed in mahara: | |
status: | In Progress → Fix Committed |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
Patch for "master" branch: https:/ /reviews. mahara. org/6172