Skip to content

Commit 2eef1f1

Browse files
committed
fix: correct schema syntax for SurrealDB 2.3.10 compatibility
Updated schema to use proper SurrealDB 2.3.10 syntax based on official documentation: - Removed duplicate ANALYZER definitions - Fixed ASSERT statements to include NONE checks: ASSERT $value = NONE OR array::len($value) = N - Made metadata fields FLEXIBLE TYPE to handle dynamic objects - Corrected HNSW index syntax with proper parameters - Ensured id fields use built-in record types (not string) Schema is now fully compatible with SurrealDB 2.3.10 and properly handles record IDs, graph traversal, and HNSW vector search.
1 parent 6210c00 commit 2eef1f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

schema/codegraph.surql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ DEFINE INDEX IF NOT EXISTS idx_symbol_embeddings_node
315315
DEFINE INDEX IF NOT EXISTS idx_symbol_embeddings_edge
316316
ON TABLE symbol_embeddings COLUMNS source_edge_id;
317317

318-
-- =============================================================================
318+
#=============================================================================
319319
-- FUNCTIONS
320320
-- =============================================================================
321321

0 commit comments

Comments
 (0)