Merge branch 'main' into test-sora
This commit is contained in:
8
backend/migrations/052_add_group_sort_order.sql
Normal file
8
backend/migrations/052_add_group_sort_order.sql
Normal file
@@ -0,0 +1,8 @@
|
||||
-- Add sort_order field to groups table for custom ordering
|
||||
ALTER TABLE groups ADD COLUMN IF NOT EXISTS sort_order INT NOT NULL DEFAULT 0;
|
||||
|
||||
-- Initialize existing groups with sort_order based on their ID
|
||||
UPDATE groups SET sort_order = id WHERE sort_order = 0;
|
||||
|
||||
-- Create index for efficient sorting
|
||||
CREATE INDEX IF NOT EXISTS idx_groups_sort_order ON groups(sort_order);
|
||||
11
backend/migrations/052_migrate_upstream_to_apikey.sql
Normal file
11
backend/migrations/052_migrate_upstream_to_apikey.sql
Normal file
@@ -0,0 +1,11 @@
|
||||
-- Migrate upstream accounts to apikey type
|
||||
-- Background: upstream type is no longer needed. Antigravity platform APIKey accounts
|
||||
-- with base_url pointing to an upstream sub2api instance can reuse the standard
|
||||
-- APIKey forwarding path. GetBaseURL()/GetGeminiBaseURL() automatically appends
|
||||
-- /antigravity for Antigravity platform APIKey accounts.
|
||||
|
||||
UPDATE accounts
|
||||
SET type = 'apikey'
|
||||
WHERE type = 'upstream'
|
||||
AND platform = 'antigravity'
|
||||
AND deleted_at IS NULL;
|
||||
Reference in New Issue
Block a user