Skip to content

Commit

Permalink
Merge pull request #164 from ethpandaops/pk910/fix-sql-schema
Browse files Browse the repository at this point in the history
fix index name collision in sql schema
  • Loading branch information
pk910 authored Oct 30, 2024
2 parents d3a9dc1 + 2053498 commit d8aaf4e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion db/schema/pgsql/20240805095505_pectra-updates2.sql
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ CREATE TABLE IF NOT EXISTS public."consolidation_requests" (
target_index BIGINT NULL,
target_pubkey bytea NULL,
tx_hash bytea NULL,
CONSTRAINT consolidation_pkey PRIMARY KEY (slot_root, slot_index)
CONSTRAINT consolidation_requests_pkey PRIMARY KEY (slot_root, slot_index)
);

CREATE INDEX IF NOT EXISTS "consolidation_requests_slot_idx"
Expand Down
2 changes: 1 addition & 1 deletion db/schema/pgsql/20241006182734_pectra-updates3.sql
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ CREATE TABLE IF NOT EXISTS public."consolidation_request_txs" (
tx_sender bytea NOT NULL,
tx_target bytea NOT NULL,
dequeue_block BIGINT NOT NULL,
CONSTRAINT consolidation_pkey PRIMARY KEY (block_root, block_index)
CONSTRAINT consolidation_request_txs_pkey PRIMARY KEY (block_root, block_index)
);

CREATE INDEX IF NOT EXISTS "consolidation_request_txs_block_number_idx"
Expand Down
2 changes: 1 addition & 1 deletion db/schema/sqlite/20240805095505_pectra-updates2.sql
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ CREATE TABLE IF NOT EXISTS "consolidation_requests" (
target_index BIGINT NULL,
target_pubkey BLOB NULL,
tx_hash BLOB NULL,
CONSTRAINT consolidation_pkey PRIMARY KEY (slot_root, slot_index)
CONSTRAINT consolidation_requests_pkey PRIMARY KEY (slot_root, slot_index)
);

CREATE INDEX IF NOT EXISTS "consolidation_requests_slot_idx"
Expand Down
2 changes: 1 addition & 1 deletion db/schema/sqlite/20241006182734_pectra-updates3.sql
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ CREATE TABLE IF NOT EXISTS "consolidation_request_txs" (
tx_sender BLOB NOT NULL,
tx_target BLOB NOT NULL,
dequeue_block BIGINT NOT NULL,
CONSTRAINT consolidation_pkey PRIMARY KEY (block_root, block_index)
CONSTRAINT consolidation_request_txs_pkey PRIMARY KEY (block_root, block_index)
);

CREATE INDEX IF NOT EXISTS "consolidation_request_txs_block_number_idx"
Expand Down

0 comments on commit d8aaf4e

Please sign in to comment.