mirror of
https://github.com/Corfirean/coa-server-manager.git
synced 2026-11-20 03:25:56 +00:00
Registry: GET /registry/v2/realms (keyset cursors, bounded filters and sorts, indexes per sort,
ETag and a short server-side cache, per-address limit) and /realms/{id}; migrations 3 and 4.
Manager: Servers page (table, filters, sortable columns, detail drawer, module tooltips from the
local catalog, players and bots apart, ping unknown), compatibility of the chosen character with
an advertised realm through the Phase 7/8 rules.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
4 lines
431 B
SQL
4 lines
431 B
SQL
-- Registry schema, migration 4. The public list's keyset cursor carries a creation time in whole seconds, so a row's creation time must be one:
|
|
-- every write path already stores it with `to_timestamp(<bigint>)`; this makes any other writer fail instead of silently repeating or skipping a realm in a page walk.
|
|
ALTER TABLE realms ADD CONSTRAINT realms_created_whole_seconds CHECK (created_at = date_trunc('second', created_at));
|