mirror of
https://github.com/MeshCore-Beacon/beacon-server.git
synced 2026-12-06 06:14:23 +00:00
9 lines
377 B
SQL
9 lines
377 B
SQL
-- Copyright 2026 Beacon Contributors
|
|
-- SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
-- Queues the last three days of rolled hours for a re-roll, which fills analytics_hourly_node_activity for them.
|
|
INSERT INTO analytics_dirty_hours (hour)
|
|
SELECT hour FROM analytics_rollup_hours
|
|
WHERE status = 'complete' AND hour >= now() - INTERVAL '72 hours'
|
|
ON CONFLICT (hour) DO NOTHING;
|