Update 00-init-db.sql
fix sql execute error
This commit is contained in:
@@ -81,7 +81,7 @@ CREATE TABLE knowledges (
|
|||||||
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||||
deleted_at TIMESTAMP NULL DEFAULT NULL,
|
deleted_at TIMESTAMP NULL DEFAULT NULL,
|
||||||
processed_at TIMESTAMP,
|
processed_at TIMESTAMP,
|
||||||
error_message TEXT,
|
error_message TEXT
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||||
|
|
||||||
CREATE INDEX idx_knowledges_tenant_id ON knowledges(tenant_id, knowledge_base_id);
|
CREATE INDEX idx_knowledges_tenant_id ON knowledges(tenant_id, knowledge_base_id);
|
||||||
@@ -150,4 +150,4 @@ CREATE TABLE chunks (
|
|||||||
|
|
||||||
CREATE INDEX idx_chunks_tenant_knowledge ON chunks(tenant_id, knowledge_id);
|
CREATE INDEX idx_chunks_tenant_knowledge ON chunks(tenant_id, knowledge_id);
|
||||||
CREATE INDEX idx_chunks_parent_id ON chunks(parent_chunk_id);
|
CREATE INDEX idx_chunks_parent_id ON chunks(parent_chunk_id);
|
||||||
CREATE INDEX idx_chunks_chunk_type ON chunks(chunk_type);
|
CREATE INDEX idx_chunks_chunk_type ON chunks(chunk_type);
|
||||||
|
|||||||
Reference in New Issue
Block a user