File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
coderd/database/migrations Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -7,11 +7,12 @@ DROP TABLE oauth2_provider_app_codes;
7
7
-- It is not possible to drop enum values from enum types, so the UP on
8
8
-- login_type has "IF NOT EXISTS".
9
9
10
- -- The constraint on the secret prefix (which is used as an id embedded in the
11
- -- secret) is dropped, but avoid completely reverting back to the previous
10
+ -- The constraints on the secret prefix (which is used as an id embedded in the
11
+ -- secret) are dropped, but avoid completely reverting back to the previous
12
12
-- behavior since that will render existing secrets unusable once upgraded
13
13
-- again. OAuth2 is blocked outside of development mode in previous versions,
14
14
-- so users will not be able to create broken secrets. This is really just to
15
15
-- make sure tests keep working (say for a bisect).
16
16
ALTER TABLE ONLY oauth2_provider_app_secrets
17
- DROP CONSTRAINT oauth2_provider_app_secrets_secret_prefix_key;
17
+ DROP CONSTRAINT oauth2_provider_app_secrets_secret_prefix_key,
18
+ ALTER COLUMN secret_prefix DROP NOT NULL ;
You can’t perform that action at this time.
0 commit comments