From b2d5b90a0c3ab21d56f910109aa97b7f5606002b Mon Sep 17 00:00:00 2001 From: xiaodino Date: Mon, 19 Feb 2024 23:15:14 -0800 Subject: [PATCH] feat(guardian-prover-health-check): add indexer in MySQL (#15945) --- ...1003_alter_health_checks_guardian_prover_id_index.sql | 9 +++++++++ .../1666651004_alter_signed_blocks_block_id_index.sql | 9 +++++++++ 2 files changed, 18 insertions(+) create mode 100644 packages/guardian-prover-health-check/migrations/1666651003_alter_health_checks_guardian_prover_id_index.sql create mode 100644 packages/guardian-prover-health-check/migrations/1666651004_alter_signed_blocks_block_id_index.sql diff --git a/packages/guardian-prover-health-check/migrations/1666651003_alter_health_checks_guardian_prover_id_index.sql b/packages/guardian-prover-health-check/migrations/1666651003_alter_health_checks_guardian_prover_id_index.sql new file mode 100644 index 0000000000..c8a49fb649 --- /dev/null +++ b/packages/guardian-prover-health-check/migrations/1666651003_alter_health_checks_guardian_prover_id_index.sql @@ -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 diff --git a/packages/guardian-prover-health-check/migrations/1666651004_alter_signed_blocks_block_id_index.sql b/packages/guardian-prover-health-check/migrations/1666651004_alter_signed_blocks_block_id_index.sql new file mode 100644 index 0000000000..078e00bd05 --- /dev/null +++ b/packages/guardian-prover-health-check/migrations/1666651004_alter_signed_blocks_block_id_index.sql @@ -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