feat(api): migrate volces client to gateway
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
UPDATE model_catalog_providers
|
||||
SET default_auth_type = 'APIKey',
|
||||
metadata = metadata || jsonb_build_object(
|
||||
'defaultConnectionSource', 'server-main.integration-platform',
|
||||
'defaultAuthTypeSynced', 'APIKey'
|
||||
),
|
||||
updated_at = now()
|
||||
WHERE provider_key = 'volces'
|
||||
OR provider_code = 'volces';
|
||||
|
||||
UPDATE integration_platforms
|
||||
SET auth_type = 'APIKey',
|
||||
credentials = CASE
|
||||
WHEN credentials ? 'apiKey' THEN credentials
|
||||
ELSE credentials || '{"apiKey": ""}'::jsonb
|
||||
END,
|
||||
updated_at = now()
|
||||
WHERE provider = 'volces'
|
||||
AND auth_type = 'AccessKey-SecretKey';
|
||||
Reference in New Issue
Block a user