fix(migrations): correct migration numbers and remove broken trigger

Migration 000029 and 000030 had off-by-one numbering in comments/notices.
Also removed update_updated_at_column() trigger from 000030 as the
function is never defined and no other table uses this pattern.
This commit is contained in:
ChenRussell
2026-04-03 10:47:34 +08:00
committed by lyingbug
parent 9bb776a91c
commit 2cbd98e36f
3 changed files with 9 additions and 15 deletions
@@ -1,10 +1,10 @@
-- Migration: 000025_add_asr_config
-- Migration: 000031_add_asr_config
-- Description: Add asr_config column to knowledge_bases for ASR (Automatic Speech Recognition) configuration.
-- ASR config stores the model ID and language settings for audio transcription.
DO $$ BEGIN RAISE NOTICE '[Migration 000025] Adding asr_config column to knowledge_bases'; END $$;
DO $$ BEGIN RAISE NOTICE '[Migration 000031] Adding asr_config column to knowledge_bases'; END $$;
ALTER TABLE knowledge_bases ADD COLUMN IF NOT EXISTS asr_config JSONB;
COMMENT ON COLUMN knowledge_bases.asr_config IS 'ASR (Automatic Speech Recognition) configuration: {"enabled": bool, "model_id": string, "language": string}';
DO $$ BEGIN RAISE NOTICE '[Migration 000025] asr_config column added successfully'; END $$;
DO $$ BEGIN RAISE NOTICE '[Migration 000031] asr_config column added successfully'; END $$;