20 lines
592 B
SQL
20 lines
592 B
SQL
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';
|