-
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 #341 from oasisprotocol/mitjat/db-schema-no-oasis3
db: schema `oasis_3` -> `chain`
- Loading branch information
Showing
14 changed files
with
219 additions
and
268 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1 @@ | ||
BEGIN; | ||
|
||
-- Schema for data that is not tied to a specific chain. | ||
CREATE SCHEMA IF NOT EXISTS multichain; | ||
GRANT USAGE ON SCHEMA multichain TO PUBLIC; | ||
|
||
-- Keeps track of chains for which we've already processed the genesis data. | ||
CREATE TABLE multichain.processed_geneses ( | ||
chain_id TEXT NOT NULL, -- e.g. 'oasis_3'; corresponds to the name of the schema that contains the chain's data. | ||
analyzer TEXT NOT NULL, | ||
processed_time TIMESTAMP WITH TIME ZONE NOT NULL, | ||
|
||
PRIMARY KEY (chain_id, analyzer) | ||
); | ||
|
||
-- Grant others read-only use. This does NOT apply to future tables in the schema. | ||
-- Likely not needed for this schema, but just in case. | ||
GRANT SELECT ON ALL TABLES IN SCHEMA multichain TO PUBLIC; | ||
|
||
COMMIT; | ||
-- moved to 01_consensus.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
Oops, something went wrong.