aboutsummaryrefslogtreecommitdiff
path: root/internal/postgres/insert_module.go
diff options
context:
space:
mode:
authorEthan Lee <ethanalee@google.com>2025-11-17 10:26:27 -0800
committerEthan Lee <ethanalee@google.com>2025-11-17 11:07:52 -0800
commiteaf237733d265b7045c7c51bd4b3989afeb56e4b (patch)
tree7aeaec98e65a79f508c5100989798e21a7de9c62 /internal/postgres/insert_module.go
parent9f629f032eecb1ec40a71af95db07c1bf3d82b44 (diff)
downloadgo-x-pkgsite-eaf237733d265b7045c7c51bd4b3989afeb56e4b.tar.xz
Revert "internal/postgres: utilize num_imports column in insert_module"
This reverts commit 28eed86815232e48f5e757569fcd061f858142d4. Reason for revert: migration takes too long Change-Id: I279e62342c79d2604cda4e7c9819bdaa8aac752c Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/721101 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> kokoro-CI: kokoro <noreply+kokoro@google.com> Reviewed-by: Robert Findley <rfindley@google.com>
Diffstat (limited to 'internal/postgres/insert_module.go')
-rw-r--r--internal/postgres/insert_module.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/internal/postgres/insert_module.go b/internal/postgres/insert_module.go
index 39e8688d..b348ae5f 100644
--- a/internal/postgres/insert_module.go
+++ b/internal/postgres/insert_module.go
@@ -409,7 +409,6 @@ func (pdb *DB) insertUnits(ctx context.Context, tx *database.DB,
pq.Array(licenseTypes),
pq.Array(licensePaths),
pdb.bypassLicenseCheck || u.IsRedistributable,
- len(u.Imports),
)
if u.Readme != nil {
pathToReadme[u.Path] = u.Readme
@@ -482,7 +481,6 @@ func insertUnits(ctx context.Context, db *database.DB, unitValues []any) (pathID
"license_types",
"license_paths",
"redistributable",
- "num_imports",
}
uniqueUnitCols := []string{"path_id", "module_id"}
returningUnitCols := []string{"id", "path_id"}