commit | 54c728ca3169c21154cabebfa66b0843dbd562e3 | [log] [tgz] |
---|---|---|
author | Julie Qiu <julie@golang.org> | Tue Aug 17 09:48:02 2021 -0400 |
committer | Julie Qiu <julie@golang.org> | Tue Aug 17 16:57:58 2021 +0000 |
tree | bd465c0853afedc9f068db5a3d3243f1ed23cf41 | |
parent | 7d1a4e678b7945775865711d8b3e670de84f9ec0 [diff] |
internal/postgres: update DeleteModule logic DeleteModule is updated to: * Remove the DELETE from search_documents, since deleting rows from units will cascade to search_documents due to search_documents_unit_id_fkey * Delete the module_path from the paths table if it no longer exists at any version in our database, which will also delete it from latest_module_versions. Fixes golang/go#47748 Change-Id: If3b972fafbd42086c8c559b513630f6c12de6dba Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/342891 Trust: Julie Qiu <julie@golang.org> Run-TryBot: Julie Qiu <julie@golang.org> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Jonathan Amsterdam <jba@google.com>
Pkg.go.dev is a website for discovering and evaluating Go packages and modules.
You can check it out at https://pkg.go.dev.
If you want to report a bug or have a feature suggestion, please first check the known issues to see if your issue is already being discussed. If an issue does not already exist, feel free to file an issue.
For answers to frequently asked questions, see go.dev/about.
You can also chat with us on the #pkgsite Slack channel on the Gophers Slack.
We would love your help!
Our canonical Git repository is located at go.googlesource.com/pkgsite. There is a mirror of the repository at github.com/golang/pkgsite.
To contribute, please read our contributing guide.
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.