Skip to content

Commit da447c2

Browse files
committed
Allow null on prefix after downgrade
Without this I think the tests would fail since they are not adding a prefix and there is no default.
1 parent 70cedd6 commit da447c2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

coderd/database/migrations/000195_oauth2_provider_codes.down.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ DROP TABLE oauth2_provider_app_codes;
1414
-- so users will not be able to create broken secrets. This is really just to
1515
-- make sure tests keep working (say for a bisect).
1616
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 SET NULL;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy