From 2db72a9acc73822873d6d9cd70c5327436af8511 Mon Sep 17 00:00:00 2001 From: Julie Qiu Date: Thu, 16 Apr 2020 13:33:27 -0400 Subject: [PATCH] migrations: add idx_modules_series_path Change-Id: I186d7317fc8b0975d721f8c5d9f7288f61df289e Reviewed-on: https://team-review.git.corp.google.com/c/golang/discovery/+/720401 Reviewed-by: Jonathan Amsterdam --- migrations/000012_add_modules_series_path_index.down.sql | 9 +++++++++ migrations/000012_add_modules_series_path_index.up.sql | 9 +++++++++ 2 files changed, 18 insertions(+) create mode 100644 migrations/000012_add_modules_series_path_index.down.sql create mode 100644 migrations/000012_add_modules_series_path_index.up.sql diff --git a/migrations/000012_add_modules_series_path_index.down.sql b/migrations/000012_add_modules_series_path_index.down.sql new file mode 100644 index 00000000..e5a46cb2 --- /dev/null +++ b/migrations/000012_add_modules_series_path_index.down.sql @@ -0,0 +1,9 @@ +-- Copyright 2020 The Go Authors. All rights reserved. +-- Use of this source code is governed by a BSD-style +-- license that can be found in the LICENSE file. + +BEGIN; + +DROP INDEX idx_modules_series_path; + +END; diff --git a/migrations/000012_add_modules_series_path_index.up.sql b/migrations/000012_add_modules_series_path_index.up.sql new file mode 100644 index 00000000..00b27554 --- /dev/null +++ b/migrations/000012_add_modules_series_path_index.up.sql @@ -0,0 +1,9 @@ +-- Copyright 2020 The Go Authors. All rights reserved. +-- Use of this source code is governed by a BSD-style +-- license that can be found in the LICENSE file. + +BEGIN; + +CREATE INDEX idx_modules_series_path ON modules(series_path); + +END;