mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-01 12:52:11 +03:00
fix(db): resolve migration conflict by renumbering 051 to 052 and 053
This commit is contained in:
21
src/lib/db/migrations/052_manifest_routing.sql
Normal file
21
src/lib/db/migrations/052_manifest_routing.sql
Normal file
@@ -0,0 +1,21 @@
|
||||
CREATE TABLE IF NOT EXISTS tier_config (
|
||||
key TEXT PRIMARY KEY,
|
||||
value TEXT NOT NULL,
|
||||
updated_at TEXT DEFAULT (datetime('now'))
|
||||
);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS tier_assignments (
|
||||
provider TEXT NOT NULL,
|
||||
model TEXT NOT NULL,
|
||||
tier TEXT NOT NULL CHECK (tier IN ('free', 'cheap', 'premium')),
|
||||
cost_per_1m_input REAL DEFAULT 0,
|
||||
cost_per_1m_output REAL DEFAULT 0,
|
||||
has_free_tier INTEGER DEFAULT 0,
|
||||
free_quota_limit INTEGER,
|
||||
reason TEXT,
|
||||
updated_at TEXT DEFAULT (datetime('now')),
|
||||
PRIMARY KEY (provider, model)
|
||||
);
|
||||
|
||||
CREATE INDEX IF NOT EXISTS idx_tier_assignments_provider ON tier_assignments(provider);
|
||||
CREATE INDEX IF NOT EXISTS idx_tier_assignments_tier ON tier_assignments(tier);
|
||||
2
src/lib/db/migrations/053_remove_status_from_files.sql
Normal file
2
src/lib/db/migrations/053_remove_status_from_files.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
-- 051: Remove status column from files table
|
||||
ALTER TABLE files DROP COLUMN status;
|
||||
Reference in New Issue
Block a user