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);