-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
34 additions
and
4 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
11 changes: 11 additions & 0 deletions
11
deploy/migrations/clickhouse/038_libp2p_gossipsub_blob_sidecar_block_fields.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 libp2p_gossipsub_blob_sidecar_local on cluster '{cluster}' | ||
DROP COLUMN parent_root; | ||
|
||
ALTER TABLE libp2p_gossipsub_blob_sidecar on cluster '{cluster}' | ||
DROP COLUMN parent_root; | ||
|
||
ALTER TABLE libp2p_gossipsub_blob_sidecar_local on cluster '{cluster}' | ||
DROP COLUMN state_root; | ||
|
||
ALTER TABLE libp2p_gossipsub_blob_sidecar on cluster '{cluster}' | ||
DROP COLUMN state_root; |
23 changes: 23 additions & 0 deletions
23
deploy/migrations/clickhouse/038_libp2p_gossipsub_blob_sidecar_block_fields.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,23 @@ | ||
ALTER TABLE libp2p_gossipsub_blob_sidecar_local on cluster '{cluster}' | ||
ADD COLUMN parent_root FixedString(66) Codec(ZSTD(1)) AFTER blob_index; | ||
|
||
ALTER TABLE libp2p_gossipsub_blob_sidecar on cluster '{cluster}' | ||
ADD COLUMN parent_root FixedString(66) Codec(ZSTD(1)) AFTER blob_index; | ||
|
||
ALTER TABLE libp2p_gossipsub_blob_sidecar_local on cluster '{cluster}' | ||
COMMENT COLUMN parent_root 'Parent root of the beacon block'; | ||
|
||
ALTER TABLE libp2p_gossipsub_blob_sidecar on cluster '{cluster}' | ||
COMMENT COLUMN parent_root 'Parent root of the beacon block'; | ||
|
||
ALTER TABLE libp2p_gossipsub_blob_sidecar_local on cluster '{cluster}' | ||
ADD COLUMN state_root FixedString(66) Codec(ZSTD(1)) AFTER parent_root; | ||
|
||
ALTER TABLE libp2p_gossipsub_blob_sidecar on cluster '{cluster}' | ||
ADD COLUMN state_root FixedString(66) Codec(ZSTD(1)) AFTER parent_root; | ||
|
||
ALTER TABLE libp2p_gossipsub_blob_sidecar_local on cluster '{cluster}' | ||
COMMENT COLUMN state_root 'State root of the beacon block'; | ||
|
||
ALTER TABLE libp2p_gossipsub_blob_sidecar on cluster '{cluster}' | ||
COMMENT COLUMN state_root 'State root of the beacon block'; |