diff --git a/migrations/000077_add_package_symbol_indexes.down.sql b/migrations/000077_add_package_symbol_indexes.down.sql new file mode 100644 index 00000000..1b4c131e --- /dev/null +++ b/migrations/000077_add_package_symbol_indexes.down.sql @@ -0,0 +1,15 @@ +-- Copyright 2021 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_documentation_symbols_package_symbol_id; +DROP INDEX idx_package_symbols_module_path_id; +DROP INDEX idx_package_symbols_package_path_id; +DROP INDEX idx_package_symbols_parent_symbol_name_id; +DROP INDEX idx_package_symbols_symbol_name_id; +DROP INDEX idx_package_symbols_section; +DROP INDEX idx_package_symbols_type; + +END; diff --git a/migrations/000077_add_package_symbol_indexes.up.sql b/migrations/000077_add_package_symbol_indexes.up.sql new file mode 100644 index 00000000..4f0f26dd --- /dev/null +++ b/migrations/000077_add_package_symbol_indexes.up.sql @@ -0,0 +1,15 @@ +-- Copyright 2021 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_documentation_symbols_package_symbol_id ON documentation_symbols(package_symbol_id); +CREATE INDEX idx_package_symbols_module_path_id ON package_symbols(module_path_id); +CREATE INDEX idx_package_symbols_package_path_id ON package_symbols(package_path_id); +CREATE INDEX idx_package_symbols_parent_symbol_name_id ON package_symbols(parent_symbol_name_id); +CREATE INDEX idx_package_symbols_symbol_name_id ON package_symbols(symbol_name_id); +CREATE INDEX idx_package_symbols_section ON package_symbols(section); +CREATE INDEX idx_package_symbols_type ON package_symbols(type); + +END;