If a trigger misfires, insert it into the trigger histories and update on duplicate keys.
In the case of a mis fired trigger, inserting into the DB shouldn't cause an exception. Instead, we should update the existing entry to match the misfired trigger matching the primary key. This can happen many times until the trigger stops misfiring.
If a trigger misfires, insert it into the trigger histories and update on duplicate keys.
In the case of a mis fired trigger, inserting into the DB shouldn't cause an exception. Instead, we should update the existing entry to match the misfired trigger matching the primary key. This can happen many times until the trigger stops misfiring.