Files
beacon-server/db/migrations/090_polling_claim_limits.sql
MrAlders0n 54ea8bdfdf feat(polling): store a claim's max_slots and poll_interval
The slot limit now follows the claim instead of a fixed 8 (default 8, ceiling 32), in the poller view and in the seat math. The poller view also reports pollIntervalMinutes.
2026-11-28 11:08:50 -05:00

8 lines
391 B
SQL

-- Copyright 2026 Beacon Contributors
-- SPDX-License-Identifier: AGPL-3.0-or-later
-- What a poller says about itself: how many targets it can hold and how often it polls each, in minutes.
-- NULL when its firmware does not report the field.
ALTER TABLE polling_claims ADD COLUMN IF NOT EXISTS max_slots smallint;
ALTER TABLE polling_claims ADD COLUMN IF NOT EXISTS poll_interval integer;