mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-16 09:52:54 +00:00
Add schema for timelines table
This commit is contained in:
@@ -0,0 +1 @@
|
||||
DROP TABLE timelines;
|
||||
@@ -0,0 +1,10 @@
|
||||
CREATE TABLE timelines (
|
||||
tenant_id VARCHAR NOT NULL,
|
||||
timeline_id VARCHAR NOT NULL,
|
||||
PRIMARY KEY(tenant_id, timeline_id),
|
||||
generation INTEGER NOT NULL,
|
||||
sk_set BIGINT[] NOT NULL,
|
||||
new_sk_set BIGINT[] NOT NULL,
|
||||
cplane_notified_generation INTEGER NOT NULL,
|
||||
status VARCHAR NOT NULL
|
||||
);
|
||||
@@ -58,10 +58,23 @@ diesel::table! {
|
||||
}
|
||||
}
|
||||
|
||||
diesel::table! {
|
||||
timelines (tenant_id, timeline_id) {
|
||||
tenant_id -> Varchar,
|
||||
timeline_id -> Varchar,
|
||||
generation -> Int4,
|
||||
sk_set -> Array<Nullable<Int8>>,
|
||||
new_sk_set -> Array<Nullable<Int8>>,
|
||||
cplane_notified_generation -> Int4,
|
||||
status -> Varchar,
|
||||
}
|
||||
}
|
||||
|
||||
diesel::allow_tables_to_appear_in_same_query!(
|
||||
controllers,
|
||||
metadata_health,
|
||||
nodes,
|
||||
safekeepers,
|
||||
tenant_shards,
|
||||
timelines,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user