This repository has been archived by the owner on Aug 31, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 33
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 #13 from vulcanize/VDB-299-Cat-diff-parsing
VDB-299 Cat diff parsing
- Loading branch information
Showing
18 changed files
with
1,708 additions
and
291 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
106 changes: 106 additions & 0 deletions
106
db/migrations/20190215160236_create_cat_storage_tables.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,106 @@ | ||
-- +goose Up | ||
CREATE TABLE maker.cat_nflip ( | ||
id SERIAL PRIMARY KEY, | ||
block_number BIGINT, | ||
block_hash TEXT, | ||
nflip NUMERIC NOT NULL | ||
); | ||
|
||
CREATE TABLE maker.cat_live ( | ||
id SERIAL PRIMARY KEY, | ||
block_number BIGINT, | ||
block_hash TEXT, | ||
live NUMERIC NOT NULL | ||
); | ||
|
||
CREATE TABLE maker.cat_vat ( | ||
id SERIAL PRIMARY KEY, | ||
block_number BIGINT, | ||
block_hash TEXT, | ||
vat TEXT | ||
); | ||
|
||
CREATE TABLE maker.cat_pit ( | ||
id SERIAL PRIMARY KEY, | ||
block_number BIGINT, | ||
block_hash TEXT, | ||
pit TEXT | ||
); | ||
|
||
CREATE TABLE maker.cat_vow ( | ||
id SERIAL PRIMARY KEY, | ||
block_number BIGINT, | ||
block_hash TEXT, | ||
vow TEXT | ||
); | ||
|
||
CREATE TABLE maker.cat_ilk_flip ( | ||
id SERIAL PRIMARY KEY, | ||
block_number BIGINT, | ||
block_hash TEXT, | ||
ilk TEXT, | ||
flip TEXT | ||
); | ||
|
||
CREATE TABLE maker.cat_ilk_chop ( | ||
id SERIAL PRIMARY KEY, | ||
block_number BIGINT, | ||
block_hash TEXT, | ||
ilk TEXT, | ||
chop NUMERIC NOT NULL | ||
); | ||
|
||
CREATE TABLE maker.cat_ilk_lump ( | ||
id SERIAL PRIMARY KEY, | ||
block_number BIGINT, | ||
block_hash TEXT, | ||
ilk TEXT, | ||
lump NUMERIC NOT NULL | ||
); | ||
|
||
CREATE TABLE maker.cat_flip_ilk ( | ||
id SERIAL PRIMARY KEY, | ||
block_number BIGINT, | ||
block_hash TEXT, | ||
flip NUMERIC NOT NULL, | ||
ilk TEXT | ||
); | ||
|
||
CREATE TABLE maker.cat_flip_urn ( | ||
id SERIAL PRIMARY KEY, | ||
block_number BIGINT, | ||
block_hash TEXT, | ||
flip NUMERIC NOT NULL, | ||
urn TEXT | ||
); | ||
|
||
CREATE TABLE maker.cat_flip_ink ( | ||
id SERIAL PRIMARY KEY, | ||
block_number BIGINT, | ||
block_hash TEXT, | ||
flip NUMERIC NOT NULL, | ||
ink NUMERIC NOT NULL | ||
); | ||
|
||
CREATE TABLE maker.cat_flip_tab ( | ||
id SERIAL PRIMARY KEY, | ||
block_number BIGINT, | ||
block_hash TEXT, | ||
flip NUMERIC NOT NULL, | ||
tab NUMERIC NOT NULL | ||
); | ||
|
||
|
||
-- +goose Down | ||
DROP TABLE maker.cat_nflip; | ||
DROP TABLE maker.cat_live; | ||
DROP TABLE maker.cat_vat; | ||
DROP TABLE maker.cat_pit; | ||
DROP TABLE maker.cat_vow; | ||
DROP TABLE maker.cat_ilk_flip; | ||
DROP TABLE maker.cat_ilk_chop; | ||
DROP TABLE maker.cat_ilk_lump; | ||
DROP TABLE maker.cat_flip_ilk; | ||
DROP TABLE maker.cat_flip_urn; | ||
DROP TABLE maker.cat_flip_ink; | ||
DROP TABLE maker.cat_flip_tab; |
Oops, something went wrong.