exclude old orders where copying everything forward

This commit is contained in:
Paul Trowbridge 2020-02-12 21:42:27 -05:00
parent ae9bba67bd
commit 270409895c

View File

@ -557,6 +557,8 @@ FROM
baseline o
LEFT OUTER JOIN gld ON
o.sdate + interval '1 year' BETWEEN gld.sdat and gld.edat
WHERE
o.odate + interval '1 year' >= '2020-06-01'
)
INSERT INTO rlarp.osmf_dev
SELECT * FROM incr