323ed2da00
Remove get_child function
...
Was only used in canonical_header_from_array
2023-07-23 01:27:00 +08:00
8779bb2b86
Do not make eth.header_cids a hypertable. ( #137 )
2023-07-21 13:27:26 -05:00
1b922dbff3
Add canonical column to eth.header_cids ( #136 )
...
* Add canonical column to eth.header_cids
* NOT NULL
* Update stored procedures for new schema.
* Switch to sql syntax, since it can be inlined.
* Fix indent
* Fix indent
2023-07-18 12:29:27 -05:00
af9910d381
Update schema dump
2023-05-15 14:17:46 +08:00
i-norden
c9edf6c832
fix bug due to block_number argument being overridden by the optimistic path
2023-03-08 12:42:37 -06:00
i-norden
22dcf5c72e
review fixes
2023-03-08 11:10:23 -06:00
i-norden
be28c2ab79
fix
2023-03-07 20:00:01 -06:00
i-norden
42803af51a
we don't need to join on state_cids in the pessimistic case anymore
2023-03-07 18:44:12 -06:00
i-norden
afc47af045
return val directly since it is now present in storage_cids
2023-03-07 18:31:26 -06:00
i-norden
2695d9e353
updated get_storage_at procedures for v5
2023-03-07 18:18:20 -06:00
i-norden
dd35277c86
updated schema
2023-02-21 20:07:28 -06:00
i-norden
a710db0284
BRIN => BTREE
2023-02-20 13:47:23 -06:00
i-norden
5e153c601f
updated schema
2023-02-17 14:26:30 -06:00
i-norden
92a9f5856b
minor fixes
2023-02-10 10:38:31 -06:00
i-norden
9f060ff0bf
updated schema
2023-02-08 18:35:16 -06:00
i-norden
73a66dae8b
updated schema
2023-02-01 20:22:22 -06:00
i-norden
c35cda7b5e
updated schema
2023-02-01 19:56:57 -06:00
i-norden
a9755c6ecc
update schema
2022-08-30 12:19:48 -05:00
i-norden
701f9c2729
update schema.sql
2022-08-15 11:15:48 -05:00
i-norden
42f46fc397
update schema.sql
2022-08-08 12:42:54 -05:00
i-norden
13f0ff3933
update schema
2022-08-08 11:08:09 -05:00
bc68969abb
Fix migrations naming after merge
2022-05-10 19:34:01 +05:30
9b917746e4
Remove triggers blocking inserts
2022-04-22 18:54:43 +05:30
ee2f43a849
Remove foreign keys to hypertables
2022-04-22 18:53:43 +05:30
i-norden
c38394ad49
updated schema
2022-04-12 21:56:43 -05:00
i-norden
201cadbd49
update the pre- and post- batch sets with new meta schema and tables
2022-03-31 12:45:27 -05:00
Abdul Rabbani
63e3d66cc1
Merge branch 'main' into feature/known_table
2022-03-31 12:07:28 -04:00
Abdul Rabbani
e99787242e
Add Migration file
2022-03-31 10:45:11 -04:00
i-norden
2162e73524
update schema
2022-03-28 18:23:30 -05:00
Abdul Rabbani
a1b75c31e9
Update schema.sql
2022-03-19 09:17:48 -04:00
Abdul Rabbani
35b40e6ff7
Add known_gaps
table - DO NOT MERGE YET!!
...
We will probably need to change the `modulus_block_number` columns name
2022-03-18 14:35:07 -04:00
a500c1a49a
Add table for watched addresses in eth_meta schema
2022-03-17 19:02:05 +05:30
i-norden
1dc12460dc
denormalize tables by block_number so that we can partition all tables by block_number for purposes of sharding
2022-03-15 16:06:13 -05:00
i-norden
f59582ab42
indexes on receipt cid and mh_key should not be unique, as it is possible (but improbable) that two receipts can be identical
2022-02-16 14:11:23 -06:00
i-norden
e2f261caa9
include timestamp for when version is updated
2021-12-27 13:52:52 -06:00
i-norden
3833fb85e2
singleton table for internally recording the database schema version
2021-12-27 11:35:32 -06:00
Arijit Das
e532192a6d
Fix CI test.
2021-12-20 21:20:50 +05:30
Arijit Das
db48f344f0
Fix failing CI and update incremental migration.
2021-12-20 14:07:48 +05:30
Arijit Das
852b5da40c
Address comments and add subscription for state_accounts and access_list_elements
2021-12-14 15:57:54 +05:30
Arijit Das
35f72bc438
Fix canonical_header_id function.
2021-12-08 13:31:40 +05:30
Arijit Das
ed183ed182
Implement postgraphile trigger.
2021-12-08 13:30:59 +05:30
i-norden
925dba5759
reorder columns to match order of values written to .sql files so that when we convert to .csv and load using COPY FROM it doesn't need to sort
2021-11-25 11:33:39 -06:00
i-norden
636fa35b84
revert my data type mistake
2021-11-24 17:52:21 -06:00
i-norden
4392505b16
use BIGINT not NUMERIC, it is faster for arithmetic operations and uses less space
2021-11-20 13:49:03 -06:00
i-norden
b8f0c194b8
remove pks; migrations to add back pks and fks
2021-11-18 17:46:50 -06:00
i-norden
0fb07a0a77
use node_id as PK/FK
2021-11-18 08:19:36 -06:00
i-norden
7cc9201a94
new natural primary key scheme
2021-11-14 18:23:26 -06:00
Arijit Das
91d92bc0bc
Fix CI workflow.
2021-10-08 19:01:40 +05:30
Arijit Das
1db8a682df
Upgrade statediff image to v0.9.0.
2021-10-08 18:36:21 +05:30
Arijit Das
562ee3e782
Create a docker image with postgres DB and concise migration.
2021-10-05 16:21:18 +05:30