fix: remove duplicate proxy log compat helper after rebase

This commit is contained in:
ciat-777
2026-03-15 23:17:11 +08:00
parent 4660c8ae0b
commit bb608a39e9
-11
View File
@@ -640,17 +640,6 @@ export async function ensureProxyLogBillingDetailsColumn(): Promise<boolean> {
}
}
function ensureProxyLogDownstreamApiKeyIdSchema() {
if (!tableExists('proxy_logs')) {
return;
}
if (!tableColumnExists('proxy_logs', 'downstream_api_key_id')) {
execSqliteLegacyCompat('ALTER TABLE proxy_logs ADD COLUMN downstream_api_key_id integer;');
}
proxyLogDownstreamApiKeyIdColumnAvailable = true;
}
export async function hasProxyLogDownstreamApiKeyIdColumn(): Promise<boolean> {
if (proxyLogDownstreamApiKeyIdColumnAvailable !== null) {
return proxyLogDownstreamApiKeyIdColumnAvailable;