feat: add nats_ca crypto_key_feature enum value (#26761)

This commit is contained in:
Callum Styan
2026-06-26 11:59:00 -07:00
committed by GitHub
parent db6e5a2a55
commit 8ff2109298
8 changed files with 49 additions and 8 deletions
@@ -0,0 +1,16 @@
DELETE FROM crypto_keys WHERE feature = 'nats_ca';
CREATE TYPE old_crypto_key_feature AS ENUM (
'workspace_apps_token',
'workspace_apps_api_key',
'oidc_convert',
'tailnet_resume'
);
ALTER TABLE crypto_keys
ALTER COLUMN feature TYPE old_crypto_key_feature
USING (feature::text::old_crypto_key_feature);
DROP TYPE crypto_key_feature;
ALTER TYPE old_crypto_key_feature RENAME TO crypto_key_feature;
@@ -0,0 +1 @@
ALTER TYPE crypto_key_feature ADD VALUE IF NOT EXISTS 'nats_ca';