mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
16 lines
427 B
SQL
16 lines
427 B
SQL
DROP TABLE IF EXISTS user_chat_provider_keys;
|
|
|
|
DO $$
|
|
BEGIN
|
|
IF to_regclass('chat_providers') IS NULL THEN
|
|
RETURN;
|
|
END IF;
|
|
|
|
ALTER TABLE chat_providers DROP CONSTRAINT IF EXISTS valid_credential_policy;
|
|
|
|
ALTER TABLE chat_providers
|
|
DROP COLUMN IF EXISTS central_api_key_enabled,
|
|
DROP COLUMN IF EXISTS allow_user_api_key,
|
|
DROP COLUMN IF EXISTS allow_central_api_key_fallback;
|
|
END $$;
|