internal/postgres: insert search_documents.unit_id
Data is now inserted into search_documents.unit_id.
For golang/go#44142
Trust: Julie Qiu
Run-TryBot: Julie Qiu
TryBot-Result: kokoro
@@ -519,6 +519,7 @@ var upsertSearchStatement = fmt.Sprintf(`
version,
module_path,
module_path_id,
+ unit_id,
name,
synopsis,
license_types,
@@ -536,6 +537,7 @@ var upsertSearchStatement = fmt.Sprintf(`
m.version,
m.module_path,
p2.id,
+ u.id AS unit_id,
u.name,
d.synopsis,
u.license_types,
@@ -566,6 +568,7 @@ var upsertSearchStatement = fmt.Sprintf(`
package_path=excluded.package_path,
version=excluded.version,
module_path=excluded.module_path,
+ unit_id=excluded.unit_id,
name=excluded.name,
synopsis=excluded.synopsis,
license_types=excluded.license_types,
