drop rows from both tables when undoing changes
This commit is contained in:
parent
18558674c0
commit
33041761c6
@ -1,5 +1,8 @@
|
|||||||
WITH
|
WITH
|
||||||
d AS (
|
d AS (
|
||||||
DELETE FROM rlarp.osm_log WHERE id = replace_id RETURNING id
|
DELETE FROM rlarp.osm_log WHERE id = replace_id RETURNING id
|
||||||
|
)
|
||||||
|
,d_osm AS (
|
||||||
|
DELETE FROM rlarp.osm_pool WHERE logid IN (select id from d)
|
||||||
)
|
)
|
||||||
SELECT json_agg(row_to_json(d)) x from d
|
SELECT json_agg(row_to_json(d)) x from d
|
Loading…
Reference in New Issue
Block a user