From 1b35a675aacfd82a8d230ffdbab936d9ccb8d287 Mon Sep 17 00:00:00 2001 From: Will Yang Date: Thu, 17 Oct 2024 14:22:04 -0700 Subject: [PATCH] rename to pruner_hi_inclusive --- .../migrations/pg/2024-09-12-213234_watermarks/up.sql | 2 +- crates/sui-indexer/src/models/watermarks.rs | 2 +- crates/sui-indexer/src/schema.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/sui-indexer/migrations/pg/2024-09-12-213234_watermarks/up.sql b/crates/sui-indexer/migrations/pg/2024-09-12-213234_watermarks/up.sql index e8499c692120c..2187cadc26f32 100644 --- a/crates/sui-indexer/migrations/pg/2024-09-12-213234_watermarks/up.sql +++ b/crates/sui-indexer/migrations/pg/2024-09-12-213234_watermarks/up.sql @@ -24,6 +24,6 @@ CREATE TABLE watermarks timestamp_ms BIGINT NOT NULL, -- Column used by the pruner to track its true progress. Data at and below this watermark can -- be immediately pruned. - pruner_lo BIGINT, + pruner_hi_inclusive BIGINT, PRIMARY KEY (entity) ); diff --git a/crates/sui-indexer/src/models/watermarks.rs b/crates/sui-indexer/src/models/watermarks.rs index a04d99a1404c2..79bd014c9a500 100644 --- a/crates/sui-indexer/src/models/watermarks.rs +++ b/crates/sui-indexer/src/models/watermarks.rs @@ -38,7 +38,7 @@ pub struct StoredWatermark { pub timestamp_ms: i64, /// Column used by the pruner to track its true progress. Data at and below this watermark can /// be immediately pruned. - pub pruner_lo: Option, + pub pruner_hi_inclusive: Option, } impl StoredWatermark { diff --git a/crates/sui-indexer/src/schema.rs b/crates/sui-indexer/src/schema.rs index a2c418db8e042..b149b0f6faa0d 100644 --- a/crates/sui-indexer/src/schema.rs +++ b/crates/sui-indexer/src/schema.rs @@ -378,7 +378,7 @@ diesel::table! { tx_hi_inclusive -> Int8, reader_lo -> Int8, timestamp_ms -> Int8, - pruner_lo -> Nullable, + pruner_hi_inclusive -> Nullable, } }