052_migrate_upstream_to_apikey.sql 469 B

1234567891011
  1. -- Migrate upstream accounts to apikey type
  2. -- Background: upstream type is no longer needed. Antigravity platform APIKey accounts
  3. -- with base_url pointing to an upstream sub2api instance can reuse the standard
  4. -- APIKey forwarding path. GetBaseURL()/GetGeminiBaseURL() automatically appends
  5. -- /antigravity for Antigravity platform APIKey accounts.
  6. UPDATE accounts
  7. SET type = 'apikey'
  8. WHERE type = 'upstream'
  9. AND platform = 'antigravity'
  10. AND deleted_at IS NULL;