-
Notifications
You must be signed in to change notification settings - Fork 11.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
some renaming and pushing the conversion logic into pg_indexer_store,…
… so pruner just tells the store what table is to be updated, and the corresponding new epoch lower bound
- Loading branch information
Showing
9 changed files
with
134 additions
and
62 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
crates/sui-indexer/migrations/pg/2024-10-09-160624_rename_watermarks_columns/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
ALTER TABLE watermarks | ||
RENAME COLUMN epoch_hi_inclusive TO epoch_hi; | ||
|
||
ALTER TABLE watermarks | ||
RENAME COLUMN checkpoint_hi_inclusive TO checkpoint_hi; | ||
|
||
ALTER TABLE watermarks | ||
RENAME COLUMN tx_hi_inclusive TO tx_hi; | ||
|
||
ALTER TABLE watermarks | ||
RENAME COLUMN pruner_lo TO pruned_lo; |
11 changes: 11 additions & 0 deletions
11
crates/sui-indexer/migrations/pg/2024-10-09-160624_rename_watermarks_columns/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
ALTER TABLE watermarks | ||
RENAME COLUMN epoch_hi TO epoch_hi_inclusive; | ||
|
||
ALTER TABLE watermarks | ||
RENAME COLUMN checkpoint_hi TO checkpoint_hi_inclusive; | ||
|
||
ALTER TABLE watermarks | ||
RENAME COLUMN tx_hi TO tx_hi_inclusive; | ||
|
||
ALTER TABLE watermarks | ||
RENAME COLUMN pruned_lo TO pruner_lo; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters