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

+2-1
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)