Added diesel_migrations crate (v2.3.0) to enable database migration functionality. Updated Cargo.toml and Cargo.lock to include the new dependency along with its required sub-dependencies (migrations_internals and migrations_macros). Also made minor cleanups in the codebase: - Removed unused UI code from platform README - Cleaned up LLM server initialization code - Added additional build dependencies in documentation
23 lines
856 B
SQL
23 lines
856 B
SQL
-- Drop triggers
|
|
DROP TRIGGER IF EXISTS update_basic_tools_updated_at ON basic_tools;
|
|
DROP TRIGGER IF EXISTS update_kb_collections_updated_at ON kb_collections;
|
|
DROP TRIGGER IF EXISTS update_kb_documents_updated_at ON kb_documents;
|
|
|
|
-- Drop function
|
|
DROP FUNCTION IF EXISTS update_updated_at_column;
|
|
|
|
-- Drop indexes
|
|
DROP INDEX IF EXISTS idx_basic_tools_active;
|
|
DROP INDEX IF EXISTS idx_basic_tools_name;
|
|
DROP INDEX IF EXISTS idx_basic_tools_bot_id;
|
|
DROP INDEX IF EXISTS idx_kb_collections_name;
|
|
DROP INDEX IF EXISTS idx_kb_collections_bot_id;
|
|
DROP INDEX IF EXISTS idx_kb_documents_indexed_at;
|
|
DROP INDEX IF EXISTS idx_kb_documents_hash;
|
|
DROP INDEX IF EXISTS idx_kb_documents_collection;
|
|
DROP INDEX IF EXISTS idx_kb_documents_bot_id;
|
|
|
|
-- Drop tables
|
|
DROP TABLE IF EXISTS basic_tools;
|
|
DROP TABLE IF EXISTS kb_collections;
|
|
DROP TABLE IF EXISTS kb_documents;
|