Can not delete node due to database table constraint

Description

If a node has an entry in the ipnettomedia table it can not be deleted.

opennms=# delete from node where nodeid=114 ;
ERROR: update or delete on table "node" violates foreign key constraint "fk_ipnettomedia_nodeid" on table "ipnettomedia"
DETAIL: Key (nodeid)=(114) is still referenced from table "ipnettomedia".

 

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

Jesse White May 18, 2019 at 4:55 PM

Jonathan Heard May 3, 2019 at 4:23 PM

New PR following conversation with Jesse and RangerRick in the dev chatroom:

https://github.com/OpenNMS/opennms/pull/2486

Fixed

Details

Assignee

Reporter

Components

Sprint

Fix versions

Affects versions

Priority

PagerDuty

Created May 1, 2019 at 2:46 PM
Updated August 9, 2019 at 2:00 PM
Resolved May 18, 2019 at 4:55 PM

Flag notifications