diff --git a/route_sql/build/build_fcpool.sql b/route_sql/build/build_fcpool.sql index 993a930..d46ce14 100644 --- a/route_sql/build/build_fcpool.sql +++ b/route_sql/build/build_fcpool.sql @@ -128,4 +128,11 @@ FROM LEFT OUTER JOIN rlarp.itemm i ON i.item = o.part --LIMIT 100 -) WITH DATA; \ No newline at end of file +) WITH DATA; + +CREATE INDEX osm_qr ON rlarp.osm_pool(quota_rep_descr); + + +DROP TABLE IF EXISTS rlarp.osm_log; + +CREATE TABLE IF NOT EXISTS rlarp.osm_log(id INT PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY, doc jsonb); \ No newline at end of file diff --git a/route_sql/build/build_forecast.sql b/route_sql/build/build_forecast.sql index b6fbb56..abe8521 100644 --- a/route_sql/build/build_forecast.sql +++ b/route_sql/build/build_forecast.sql @@ -552,7 +552,7 @@ SELECT ,o.sdate + interval '1 year' --incremented ,o.sseas + 1 --incremented ,'b21' "version" - ,'baseline' iter + ,'copy' iter FROM baseline o LEFT OUTER JOIN gld ON