P0 fixes: - ModelError.Is(): use exact matching instead of substring contains() - shouldClearStickySession: add context param for cancellation/tracing P1 fixes: - TODO stubs: return 501 Not Implemented errors - validateInstanceSignature: deduplicate to shared validateCodeSignature() - Error messages: standardize to English only - http.go: remove pseudo if-else with duplicate branches
15 lines
698 B
SQL
15 lines
698 B
SQL
-- Drop legacy cache token columns that lack the underscore separator.
|
|
-- These were created by GORM's automatic snake_case conversion:
|
|
-- CacheCreation5mTokens → cache_creation5m_tokens (incorrect)
|
|
-- CacheCreation1hTokens → cache_creation1h_tokens (incorrect)
|
|
--
|
|
-- The canonical columns are:
|
|
-- cache_creation_5m_tokens (defined in 001_init.sql)
|
|
-- cache_creation_1h_tokens (defined in 001_init.sql)
|
|
--
|
|
-- Migration 009 already copied data from legacy → canonical columns.
|
|
-- This migration drops the legacy columns to avoid confusion.
|
|
|
|
ALTER TABLE usage_logs DROP COLUMN IF EXISTS cache_creation5m_tokens;
|
|
ALTER TABLE usage_logs DROP COLUMN IF EXISTS cache_creation1h_tokens;
|