From da8fd4a2e6d71886fd5dc39b3406194148934b41 Mon Sep 17 00:00:00 2001 From: durch Date: Wed, 27 Nov 2024 10:33:14 +0100 Subject: [PATCH] If not exists --- nym-api/migrations/20241127100000_monitor_run_indexes.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)