Files
cloud-ip-validator/internal/db/migrations/0003_fip_settle_delay.sql
T

15 lines
638 B
SQL
Raw Normal View History

2026-08-24 10:29:08 +03:00
-- Support for a configurable pause between FIP association and the start
-- of self-check (see docs/USAGE.md).
ALTER TABLE ip_queue ADD COLUMN fip_associated_at TIMESTAMP;
-- Singleton row for the one dynamic scalar setting we have so far.
-- Deliberately a typed single-row table, not a generic key-value settings
-- table: overengineering for exactly one field. If more scalar knobs show
-- up, add columns here first.
CREATE TABLE settings (
id INTEGER PRIMARY KEY CHECK (id = 1),
fip_settle_seconds INTEGER NOT NULL DEFAULT 0,
created_at TIMESTAMP NOT NULL,
updated_at TIMESTAMP NOT NULL
);