Drop unused users.searchable DB column (#60429)

We stopped using this over a release ago, so we can now safely drop it from the schema.

## Test plan

Backcompat tests.
This commit is contained in:
Erik Seliger 2024-02-14 15:09:55 +01:00 committed by GitHub
parent 17b3519780
commit 8e250b408b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 4 additions and 15 deletions

View File

@ -28586,19 +28586,6 @@
"GenerationExpression": "",
"Comment": ""
},
{
"Name": "searchable",
"Index": 19,
"TypeName": "boolean",
"IsNullable": false,
"Default": "true",
"CharacterMaximumLength": 0,
"IsIdentity": false,
"IdentityGeneration": "",
"IsGenerated": "NEVER",
"GenerationExpression": "",
"Comment": ""
},
{
"Name": "site_admin",
"Index": 12,

View File

@ -4349,7 +4349,6 @@ Foreign-key constraints:
billing_customer_id | text | | |
invalidated_sessions_at | timestamp with time zone | | not null | now()
tos_accepted | boolean | | not null | false
searchable | boolean | | not null | true
completions_quota | integer | | |
code_completions_quota | integer | | |
completed_post_signup | boolean | | not null | false

View File

@ -0,0 +1 @@
ALTER TABLE users ADD COLUMN IF NOT EXISTS searchable boolean DEFAULT true NOT NULL;

View File

@ -0,0 +1,2 @@
name: drop_user_searchable
parents: [1706629467, 1706710430]

View File

@ -0,0 +1 @@
ALTER TABLE users DROP COLUMN IF EXISTS searchable;

View File

@ -4196,7 +4196,6 @@ CREATE TABLE users (
billing_customer_id text,
invalidated_sessions_at timestamp with time zone DEFAULT now() NOT NULL,
tos_accepted boolean DEFAULT false NOT NULL,
searchable boolean DEFAULT true NOT NULL,
completions_quota integer,
code_completions_quota integer,
completed_post_signup boolean DEFAULT false NOT NULL,