old_provider is matched as text; new_provider is also cast to ai_provider_type for the EXISTS check against ai_providers.type. ai_provider_id IS NOT NULL is defensive; the check constraint already enforces that non-deleted rows always have a provider ID.
(ctx context.Context, arg BackfillChatModelConfigProviderParams)
| 76 | // ai_provider_id IS NOT NULL is defensive; the check constraint already |
| 77 | // enforces that non-deleted rows always have a provider ID. |
| 78 | BackfillChatModelConfigProvider(ctx context.Context, arg BackfillChatModelConfigProviderParams) (sql.Result, error) |
| 79 | BackoffChatDiffStatus(ctx context.Context, arg BackoffChatDiffStatusParams) error |
| 80 | BatchUpdateWorkspaceAgentMetadata(ctx context.Context, arg BatchUpdateWorkspaceAgentMetadataParams) error |
| 81 | BatchUpdateWorkspaceLastUsedAt(ctx context.Context, arg BatchUpdateWorkspaceLastUsedAtParams) error |
no outgoing calls