Centralize durable schema migration ownership
This commit is contained in:
parent
cc328237f4
commit
069f3813ae
1 changed files with 354 additions and 350 deletions
|
|
@ -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);
|
||||
Loading…
Reference in a new issue