From 9fca519860a4df03aefa781827ba2f67d949fead Mon Sep 17 00:00:00 2001 From: Jonathan Amsterdam Date: Tue, 24 Nov 2020 12:18:26 -0500 Subject: internal/postgres: remove html column from insert Change-Id: Icacafa2eda7b4299c44de581fe890703c2ba7947 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/272789 Trust: Jonathan Amsterdam Run-TryBot: Jonathan Amsterdam TryBot-Result: kokoro Reviewed-by: Julie Qiu --- internal/postgres/insert_module.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/postgres/insert_module.go') diff --git a/internal/postgres/insert_module.go b/internal/postgres/insert_module.go index 427f0a03..3d1a5985 100644 --- a/internal/postgres/insert_module.go +++ b/internal/postgres/insert_module.go @@ -434,10 +434,10 @@ func (pdb *DB) insertUnits(ctx context.Context, db *database.DB, m *internal.Mod continue } unitID := pathToUnitID[path] - docValues = append(docValues, unitID, doc.GOOS, doc.GOARCH, doc.Synopsis, "", doc.Source) + docValues = append(docValues, unitID, doc.GOOS, doc.GOARCH, doc.Synopsis, doc.Source) } uniqueCols := []string{"unit_id", "goos", "goarch"} - docCols := append(uniqueCols, "synopsis", "html", "source") + docCols := append(uniqueCols, "synopsis", "source") if err := db.BulkUpsert(ctx, "documentation", docCols, docValues, uniqueCols); err != nil { return err } -- cgit v1.3-5-g9baa