diff --git a/storage_controller/migrations/2025-01-15-000118_safekeeper_timelines/up.sql b/storage_controller/migrations/2025-01-15-000118_safekeeper_timelines/up.sql index 749d727827..cd30f25519 100644 --- a/storage_controller/migrations/2025-01-15-000118_safekeeper_timelines/up.sql +++ b/storage_controller/migrations/2025-01-15-000118_safekeeper_timelines/up.sql @@ -6,6 +6,7 @@ CREATE TABLE timelines ( sk_set BIGINT[] NOT NULL, new_sk_set BIGINT[] NOT NULL, cplane_notified_generation INTEGER NOT NULL, + status_kind VARCHAR NOT NULL, status VARCHAR NOT NULL ); -CREATE INDEX timelines_idx ON timelines(status, tenant_id, timeline_id); \ No newline at end of file +CREATE INDEX timelines_idx ON timelines(status_kind, tenant_id, timeline_id); diff --git a/storage_controller/src/schema.rs b/storage_controller/src/schema.rs index 8b6320aff1..9b43143c99 100644 --- a/storage_controller/src/schema.rs +++ b/storage_controller/src/schema.rs @@ -66,6 +66,7 @@ diesel::table! { sk_set -> Array>, new_sk_set -> Array>, cplane_notified_generation -> Int4, + status_kind -> Varchar, status -> Varchar, } }