-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #611 from oasisprotocol/ptrus/feature/statecheck-e…
…xempt statecheck: exempt accounts that are stale (to be requeried)
- Loading branch information
Showing
4 changed files
with
130 additions
and
50 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,16 +1,19 @@ | ||
BEGIN; | ||
-- Removed in https://github.com/oasisprotocol/nexus/pull/611 | ||
-- From there on statecheck manually handles the snapshots schemas. | ||
|
||
-- Schema for creating snapshot copies of the key tables. | ||
CREATE SCHEMA IF NOT EXISTS snapshot; | ||
GRANT USAGE ON SCHEMA snapshot TO PUBLIC; | ||
-- BEGIN; | ||
|
||
-- Heights at which the key tables have been "snapshotted" (i.e. copied from | ||
-- table chain.X to snapshot.X) as part of `tests/statecheck`. | ||
CREATE TABLE snapshot.snapshotted_heights | ||
( | ||
analyzer TEXT NOT NULL, | ||
height BIGINT PRIMARY KEY, | ||
snapshot_time TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP | ||
); | ||
-- -- Schema for creating snapshot copies of the key tables. | ||
-- CREATE SCHEMA IF NOT EXISTS snapshot; | ||
-- GRANT USAGE ON SCHEMA snapshot TO PUBLIC; | ||
|
||
COMMIT; | ||
-- -- Heights at which the key tables have been "snapshotted" (i.e. copied from | ||
-- -- table chain.X to snapshot.X) as part of `tests/statecheck`. | ||
-- CREATE TABLE snapshot.snapshotted_heights | ||
-- ( | ||
-- analyzer TEXT NOT NULL, | ||
-- height BIGINT PRIMARY KEY, | ||
-- snapshot_time TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP | ||
-- ); | ||
|
||
-- COMMIT; |
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