PHPunit fails uninstall process due to foreign key

Bug #1798663 reported by Robert Lyon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Low
Unassigned

Bug Description

We get this error:

[DBG] f5 (lib/dml.php:157) postgres8 error: [-1: ERROR: cannot drop constraint tst_oautservregi_id_pk on table tst_oauth_server_registry because other objects depend on it
[DBG] f5 (lib/dml.php:157) DETAIL: constraint tst_ltiasse_oau_fk on table tst_lti_assessment depends on index tst_oautservregi_id_pk

Due to having a foreign key between installed modules and the module referencing the key tries to delete first

Robert Lyon (robertl-9)
Changed in mahara:
status: New → In Progress
importance: Undecided → Low
milestone: none → 18.10rc2
Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/9241
Committed: https://git.mahara.org/mahara/mahara/commit/8649464f04bec783d862dfd890fc49d3cdf5337b
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit 8649464f04bec783d862dfd890fc49d3cdf5337b
Author: Robert Lyon <email address hidden>
Date: Fri Oct 19 08:41:43 2018 +1300

Bug 1798663: Fixing phpunit uninstall

Dealing with the foreign key between installed modules

behatnotneeded

Change-Id: Ic381249829fe98919b82a79897da4c47daeea87b
Signed-off-by: Robert Lyon <email address hidden>

Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "18.10_STABLE" branch: https://reviews.mahara.org/9252

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/9252
Committed: https://git.mahara.org/mahara/mahara/commit/7b68e08e8582562380b7488b5b73af6b8a57e166
Submitter: Robert Lyon (<email address hidden>)
Branch: 18.10_STABLE

commit 7b68e08e8582562380b7488b5b73af6b8a57e166
Author: Robert Lyon <email address hidden>
Date: Fri Oct 19 08:41:43 2018 +1300

Bug 1798663: Fixing phpunit uninstall

Dealing with the foreign key between installed modules

behatnotneeded

Change-Id: Ic381249829fe98919b82a79897da4c47daeea87b
Signed-off-by: Robert Lyon <email address hidden>
(cherry picked from commit 8649464f04bec783d862dfd890fc49d3cdf5337b)

Robert Lyon (robertl-9)
Changed in mahara:
status: In Progress → Fix Committed
Robert Lyon (robertl-9)
Changed in mahara:
milestone: 18.10rc2 → 18.10.0
Robert Lyon (robertl-9)
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.