diff --git a/nym-api/migrations/20241127100000_monitor_run_indexes.sql b/nym-api/migrations/20241127100000_monitor_run_indexes.sql index c3ba36f4e4..fd98b2613b 100644 --- a/nym-api/migrations/20241127100000_monitor_run_indexes.sql +++ b/nym-api/migrations/20241127100000_monitor_run_indexes.sql @@ -3,6 +3,6 @@ * SPDX-License-Identifier: Apache-2.0 */ -create index monitor_run_timestamp on monitor_run(timestamp); -create index monitor_run_id on monitor_run(id); -create index testing_route_monitor_run_id on testing_route(monitor_run_id) +CREATE INDEX IF NOT EXISTS monitor_run_timestamp on monitor_run(timestamp); +CREATE INDEX IF NOT EXISTS monitor_run_id on monitor_run(id); +CREATE INDEX IF NOT EXISTS testing_route_monitor_run_id on testing_route(monitor_run_id)