migrations: add index for packages(module_path, version)

Change-Id: I4cc78c044c3c493936034920efe89e62b79814ae
Reviewed-on: https://team-review.git.corp.google.com/c/golang/discovery/+/719984
Reviewed-by: Jonathan Amsterdam <jba@google.com>
This commit is contained in:
Julie Qiu 2020-04-16 11:12:29 -04:00 коммит произвёл Julie Qiu
Родитель f82f4b17d7
Коммит 41e4c5cc8f
2 изменённых файлов: 18 добавлений и 0 удалений

Просмотреть файл

@ -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_packages_module_path_version;
END;

Просмотреть файл

@ -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_packages_module_path_version ON packages(module_path, version);
END;