- Add comprehensive documentation in botbook/ with 12 chapters - Add botapp/ Tauri desktop application - Add botdevice/ IoT device support - Add botlib/ shared library crate - Add botmodels/ Python ML models service - Add botplugin/ browser extension - Add botserver/ reorganized server code - Add bottemplates/ bot templates - Add bottest/ integration tests - Add botui/ web UI server - Add CI/CD workflows in .forgejo/workflows/ - Add AGENTS.md and PROD.md documentation - Add dependency management scripts (DEPENDENCIES.sh/ps1) - Remove legacy src/ structure and migrations - Clean up temporary and backup files
14 lines
516 B
SQL
14 lines
516 B
SQL
-- ============================================
|
|
-- KB Documents Fail State
|
|
-- Version: 6.3.0
|
|
-- ============================================
|
|
-- Add fail_count and last_failed_at to kb_documents
|
|
-- for intelligent backoff retry logic
|
|
|
|
ALTER TABLE kb_documents
|
|
ADD COLUMN IF NOT EXISTS fail_count INT NOT NULL DEFAULT 0,
|
|
ADD COLUMN IF NOT EXISTS last_failed_at TIMESTAMPTZ;
|
|
|
|
CREATE INDEX IF NOT EXISTS idx_kb_documents_fail
|
|
ON kb_documents(bot_id, collection_name, fail_count)
|
|
WHERE fail_count > 0;
|