--delete ad_el and ad_subst_fc
DELETE FROM object_revision WHERE object_id=12 OR object_id=205;
--delete ad_el relations with ad_fc and ad_subst_fc
DELETE FROM object_revision WHERE slave_object_id=13;
--delete ad_subst
DELETE FROM object_revision WHERE object_id=2000;

--insert stray and empty ad_subst_fc
INSERT INTO attributes VALUES
    (901, hstore(ARRAY[
     ['ad_subst:is_exclude', '1'],
     ['cat:ad_subst_fc', '1']]));

INSERT INTO object_revision (object_id, commit_id, prev_commit_id, deleted, geometry_id, attributes_id, description_id, master_object_id, slave_object_id) VALUES
    (1000001, 1, 0, false, 0, 901, 0, 0, 0);
