codeintel: Remove unused filter column (#43806)

This commit is contained in:
Eric Fritz 2022-11-02 08:49:36 -05:00 committed by GitHub
parent 736a5626cd
commit f282072cca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 8 additions and 19 deletions

View File

@ -13248,19 +13248,6 @@
"GenerationExpression": "",
"Comment": "The identifier of the upload that references the package."
},
{
"Name": "filter",
"Index": 5,
"TypeName": "bytea",
"IsNullable": true,
"Default": "",
"CharacterMaximumLength": 0,
"IsIdentity": false,
"IdentityGeneration": "",
"IsGenerated": "NEVER",
"GenerationExpression": "",
"Comment": "A [bloom filter](https://sourcegraph.com/github.com/sourcegraph/sourcegraph@3.23/-/blob/enterprise/internal/codeintel/bloomfilter/bloom_filter.go#L27:6) encoded as gzipped JSON. This bloom filter stores the set of identifiers imported from the package."
},
{
"Name": "id",
"Index": 1,

View File

@ -1974,7 +1974,6 @@ Associates an upload with the set of packages they provide within a given packag
scheme | text | | not null |
name | text | | not null |
version | text | | |
filter | bytea | | |
dump_id | integer | | not null |
Indexes:
"lsif_references_pkey" PRIMARY KEY, btree (id)
@ -1989,8 +1988,6 @@ Associates an upload with the set of packages they require within a given packag
**dump_id**: The identifier of the upload that references the package.
**filter**: A [bloom filter](https://sourcegraph.com/github.com/sourcegraph/sourcegraph@3.23/-/blob/enterprise/internal/codeintel/bloomfilter/bloom_filter.go#L27:6) encoded as gzipped JSON. This bloom filter stores the set of identifiers imported from the package.
**name**: The package name.
**scheme**: The (import) moniker scheme.

View File

@ -0,0 +1,4 @@
ALTER TABLE
lsif_references
ADD
COLUMN IF NOT EXISTS filter bytea;

View File

@ -0,0 +1,2 @@
name: Remove filter from lsif_references
parents: [1667313173]

View File

@ -0,0 +1,2 @@
ALTER TABLE
lsif_references DROP COLUMN IF EXISTS filter;

View File

@ -2749,7 +2749,6 @@ CREATE TABLE lsif_references (
scheme text NOT NULL,
name text NOT NULL,
version text,
filter bytea,
dump_id integer NOT NULL
);
@ -2761,8 +2760,6 @@ COMMENT ON COLUMN lsif_references.name IS 'The package name.';
COMMENT ON COLUMN lsif_references.version IS 'The package version.';
COMMENT ON COLUMN lsif_references.filter IS 'A [bloom filter](https://sourcegraph.com/github.com/sourcegraph/sourcegraph@3.23/-/blob/enterprise/internal/codeintel/bloomfilter/bloom_filter.go#L27:6) encoded as gzipped JSON. This bloom filter stores the set of identifiers imported from the package.';
COMMENT ON COLUMN lsif_references.dump_id IS 'The identifier of the upload that references the package.';
CREATE SEQUENCE lsif_references_id_seq