-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(guardian-prover-health-check): add indexes (#17245)
- Loading branch information
1 parent
0b81d42
commit 15e9c13
Showing
5 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
...prover-health-check/migrations/1666651006_alter_health_checks_recovered_address_index.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
9 changes: 9 additions & 0 deletions
9
...th-check/migrations/1666651007_alter_health_checks_recovered_address_created_at_index.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
9 changes: 9 additions & 0 deletions
9
.../guardian-prover-health-check/migrations/1666651008_alter_signed_blocks_address_index.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
9 changes: 9 additions & 0 deletions
9
...ardian-prover-health-check/migrations/1666651009_alter_signed_blocks_address_block_id.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
9 changes: 9 additions & 0 deletions
9
...rover-health-check/migrations/1666651010_alter_startups_guardian_prover_address_index.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |