Skip to content

codeintel: Add migration to add count of locations in lsif_data_{definitions,references}

Created by: efritz

This is prerequisite effort to https://github.com/sourcegraph/sourcegraph/issues/18554.

This PR builds on the infrastructure laid out by https://github.com/sourcegraph/sourcegraph/pull/18667. In a similar fashion, we add a num_locations and schema_verion column on both the lsif_data_definitions and lsif_data_references tables, as well as create two aggregate tables (lsif_data_definitions_schema_versions and lsif_data_references_schema_version) to count the min and max schema version for each upload.

Merge request reports

Loading