Skip to content

Commit

Permalink
feat(guardian-prover-health-check): add indexes (#17245)
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberhorsey authored May 18, 2024
1 parent 0b81d42 commit 15e9c13
Show file tree
Hide file tree
Showing 5 changed files with 45 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_recovered_address_index` (`recovered_address`);

-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
DROP INDEX health_checks_recovered_address_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 `health_checks` ADD INDEX `health_checks_recovered_address_created_at_index` (`recovered_address`, `created_at`);

-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
DROP INDEX health_checks_recovered_address_created_at_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_recovered_address_index` (`recovered_address`);

-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
DROP INDEX signed_blocks_recovered_address_index on signed_blocks;
-- +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_recovered_address_block_id_index` (`recovered_address`, `block_id`);

-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
DROP INDEX signed_blocks_recovered_address_block_id_index on signed_blocks;
-- +goose StatementEnd
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
-- +goose Up
-- +goose StatementBegin
ALTER TABLE `startups` ADD INDEX `startups_guardian_prover_address_index` (`guardian_prover_address`);

-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
DROP INDEX startups_guardian_prover_address_index on startups;
-- +goose StatementEnd

0 comments on commit 15e9c13

Please sign in to comment.