Commit 47e60b1
fix(sqlite): drop tenant from FTS5 table names
FTS5 tables were named {namespace}_{tenant}_{collection}_{attrs}_fts at
creation (when tenant was empty) but findFulltextTableForAttribute
re-derived the prefix at query time when tenant has been populated to the
current project's id, so the LIKE prefix never matched. Regular SQL tables
under shared mode use {namespace}_{collection} — tenant is a discriminator
column, not a name suffix — and the FTS5 layer tracks the parent collection
1:1, so the same convention applies.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 3e27ef1 commit 47e60b1
1 file changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
355 | | - | |
| 355 | + | |
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
| |||
736 | 736 | | |
737 | 737 | | |
738 | 738 | | |
739 | | - | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
740 | 743 | | |
741 | 744 | | |
742 | 745 | | |
743 | | - | |
| 746 | + | |
744 | 747 | | |
745 | 748 | | |
746 | 749 | | |
| |||
0 commit comments