Skip to content

Commit

Permalink
feat(guardian-prover-health-check): add indexer in MySQL (#15945) (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaodino authored Feb 25, 2024
1 parent 809d461 commit 0d74004
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
-- +goose Up
-- +goose StatementBegin
ALTER TABLE `health_checks` ADD INDEX `health_checks_guardian_prover_id_index` (`guardian_prover_id`);

-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
DROP INDEX health_checks_guardian_prover_id_index on health_checks;
-- +goose StatementEnd
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
-- +goose Up
-- +goose StatementBegin
ALTER TABLE `signed_blocks` ADD INDEX `signed_blocks_block_id_index` (`block_id`);

-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
DROP INDEX signed_blocks_block_id_index on signed_blocks;
-- +goose StatementEnd

0 comments on commit 0d74004

Please sign in to comment.