Centralize durable schema migration ownership

This commit is contained in:
ms2k 2026-07-19 01:20:18 +09:00
commit 069f3813ae

View file

@ -0,0 +1,8 @@
CREATE TABLE remora_schema_state (
singleton BOOLEAN PRIMARY KEY DEFAULT TRUE CHECK (singleton),
generation BIGINT NOT NULL CHECK (generation > 0),
updated_at TIMESTAMPTZ NOT NULL DEFAULT now()
);
INSERT INTO remora_schema_state (singleton, generation)
VALUES (TRUE, 1);