From 5dc4722a8a9710e2a986be54d4b41985608c9f71 Mon Sep 17 00:00:00 2001 From: Leo Valais Date: Thu, 19 Dec 2024 16:34:19 +0100 Subject: [PATCH] editoast: add indexes to infr_layer_operational_point Signed-off-by: Leo Valais --- .../down.sql | 4 ++++ .../up.sql | 3 +++ 2 files changed, 7 insertions(+) create mode 100644 editoast/migrations/2024-12-19-152854_index_infra_layer_operational_point/down.sql create mode 100644 editoast/migrations/2024-12-19-152854_index_infra_layer_operational_point/up.sql diff --git a/editoast/migrations/2024-12-19-152854_index_infra_layer_operational_point/down.sql b/editoast/migrations/2024-12-19-152854_index_infra_layer_operational_point/down.sql new file mode 100644 index 00000000000..6c42b99a917 --- /dev/null +++ b/editoast/migrations/2024-12-19-152854_index_infra_layer_operational_point/down.sql @@ -0,0 +1,4 @@ +-- This file should undo anything in `up.sql` +DROP INDEX IF EXISTS idx_infra_layer_operational_point_infra_id; + +DROP INDEX IF EXISTS idx_infra_layer_operational_point_obj_id; diff --git a/editoast/migrations/2024-12-19-152854_index_infra_layer_operational_point/up.sql b/editoast/migrations/2024-12-19-152854_index_infra_layer_operational_point/up.sql new file mode 100644 index 00000000000..477f9ad9f29 --- /dev/null +++ b/editoast/migrations/2024-12-19-152854_index_infra_layer_operational_point/up.sql @@ -0,0 +1,3 @@ +CREATE INDEX IF NOT EXISTS idx_infra_layer_operational_point_infra_id ON infra_layer_operational_point (infra_id); + +CREATE INDEX IF NOT EXISTS idx_infra_layer_operational_point_obj_id ON infra_layer_operational_point (obj_id);