Skip to content

Commit 66cd81c

Browse files
committed
fix constraint query
1 parent a1af1ac commit 66cd81c

File tree

1 file changed

+1
-1
lines changed
  • pkg/postgres/migrations/202511141700_withdrawalQueueAndAllocationRounding

1 file changed

+1
-1
lines changed

pkg/postgres/migrations/202511141700_withdrawalQueueAndAllocationRounding/up.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func (m *Migration) Up(db *sql.DB, grm *gorm.DB, cfg *config.Config) error {
2121
`alter table queued_slashing_withdrawals add column if not exists completion_block_number bigint`,
2222

2323
// Add FK constraint for completion block
24-
`alter table queued_slashing_withdrawals add constraint if not exists fk_completion_block foreign key (completion_block_number) references blocks(number) on delete set null`,
24+
`alter table queued_slashing_withdrawals add constraint fk_completion_block foreign key (completion_block_number) references blocks(number) on delete set null`,
2525

2626
// =============================================================================
2727
// PART 2: Create indexes for efficient withdrawal queue queries

0 commit comments

Comments
 (0)