diff options
| author | Jonathan Amsterdam <jba@google.com> | 2020-11-24 12:18:26 -0500 |
|---|---|---|
| committer | Jonathan Amsterdam <jba@google.com> | 2020-11-24 17:53:35 +0000 |
| commit | 9fca519860a4df03aefa781827ba2f67d949fead (patch) | |
| tree | 02ac85d8b39c5c719dbfb95d06222c730ad4862b /internal/postgres/insert_module.go | |
| parent | 58b3582a89ac6f458905e39b96907d87c68b8955 (diff) | |
| download | go-x-pkgsite-9fca519860a4df03aefa781827ba2f67d949fead.tar.xz | |
internal/postgres: remove html column from insert
Change-Id: Icacafa2eda7b4299c44de581fe890703c2ba7947
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/272789
Trust: Jonathan Amsterdam <jba@google.com>
Run-TryBot: Jonathan Amsterdam <jba@google.com>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Julie Qiu <julie@golang.org>
Diffstat (limited to 'internal/postgres/insert_module.go')
| -rw-r--r-- | internal/postgres/insert_module.go | 4 |
1 files changed, 2 insertions, 2 deletions
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 } |
