Skip to content

Commit

Permalink
fix index name collision in sql schema
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed Oct 30, 2024
1 parent d3a9dc1 commit 2053498
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 2053498

Please sign in to comment.