upgrade from 1.8 error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| Mahara |
High
|
Robert Lyon |
Bug Description
when I upgrade from 1.8_STABLE to 1.9dev I get this error:
Could not execute command: ALTER TABLE usr_custom_layout ADD CONSTRAINT usrcustlayo_gro_fk FOREIGN KEY (`group`) REFERENCES `group` (id)
Call stack (most recent first):
execute_
execute_
add_
xmldb_
upgrade_
This is because a fix 09b2f5ba730d4d0
The version in master needs to check if foreign keys already exist or not.
Robert Lyon (robertl-9) wrote : | #2 |
Ideally, now that the htdocs/
so have:
...
htdocs/
htdocs/
htdocs/
...
we could possibly get it so that if something needs to be backported from 1_9 to 1_8 we only need to add the code change once somehow. [ I've not worked out how yet :) ]
Aaron Wells (u-aaronw) wrote : | #3 |
Whoops, my bad. I neglected the advice on this page: https:/
"If you are pushing the same database upgrade to both master and to one or more stable branches ... you must ensure that your upgrade will not fail, (and will have no effect) when it is run a second time, because it will be run when users do their stable upgrade, and again when the next major upgrade comes out."
Aaron Wells (u-aaronw) wrote : | #4 |
The backport in question: https:/
Reviewed: https:/
Committed: http://
Submitter: Robert Lyon (<email address hidden>)
Branch: master
commit 4da1f28a3042577
Author: Robert Lyon <email address hidden>
Date: Thu Mar 6 13:32:56 2014 +1300
Failure on upgrade from 1.8 to 1.9 (Bug #1288490)
Don't run the usr_custom_layout upgrade patch if it was run before.
We check for the presence of the usr_custom_
see whether the patch has been run (or the instance was installed
with the fixes already in place).
Change-Id: I3adfd13ef622ed
Signed-off-by: Robert Lyon <email address hidden>
tags: | added: regression |
Changed in mahara: | |
status: | Confirmed → Fix Committed |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
Patch for "master" branch: https:/ /reviews. mahara. org/3080