diff --git a/packages/db/postgres/tables.sql b/packages/db/postgres/tables.sql index a58fd7ca47..eb8fd5aa72 100644 --- a/packages/db/postgres/tables.sql +++ b/packages/db/postgres/tables.sql @@ -175,3 +175,14 @@ CREATE TABLE IF NOT EXISTS pin_sync_request pin_id BIGINT NOT NULL UNIQUE REFERENCES pin (id), inserted_at TIMESTAMP WITH TIME ZONE DEFAULT timezone('utc'::text, now()) NOT NULL ); + +-- A migration tracker. +CREATE TABLE IF NOT EXISTS migration_tracker +( + id BIGSERIAL PRIMARY KEY, + cid TEXT NOT NULL, + duration BIGINT, + dump_started_at TIMESTAMP WITH TIME ZONE, + dump_ended_at TIMESTAMP WITH TIME ZONE NOT NULL, + inserted_at TIMESTAMP WITH TIME ZONE DEFAULT timezone('utc'::text, now()) NOT NULL +)