mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-20 19:56:00 +00:00
add ancestry check
This commit is contained in:
@@ -863,6 +863,8 @@ BEGIN
|
||||
RETURN NEW;
|
||||
END;
|
||||
$$ LANGUAGE plpgsql;
|
||||
CREATE TRIGGER verify_ancestry BEFORE INSERT OR UPDATE on ledgers
|
||||
FOR EACH ROW EXECUTE PROCEDURE insert_ancestry();
|
||||
|
||||
-- Trigger function prior to delete on ledgers table. Disallow gaps from
|
||||
-- forming. Do not allow deletions if both the previous and next ledgers
|
||||
|
||||
Reference in New Issue
Block a user