internal/postgres: populate search_documents columns
The columns name, synopsis, and license_types on the search_documents
table are now populated in UpsertSearchDocument.
CI-Result: Cloud Build
@@ -623,8 +623,11 @@ var upsertSearchStatement = fmt.Sprintf(`
package_path,
version,
module_path,
- version_updated_at,
+ name,
+ synopsis,
+ license_types,
redistributable,
+ version_updated_at,
commit_time,
tsv_search_tokens,
hll_register,
@@ -634,8 +637,11 @@ var upsertSearchStatement = fmt.Sprintf(`
p.path,
p.version,
p.module_path,
- CURRENT_TIMESTAMP,
+ p.name,
+ p.synopsis,
+ p.license_types,
p.redistributable,
+ CURRENT_TIMESTAMP,
v.commit_time,
(
SETWEIGHT(TO_TSVECTOR($2), 'A') ||
