From ebc7af3250c580ba0232b57d62d4c36cd40eae81 Mon Sep 17 00:00:00 2001 From: shum Date: Sat, 13 Jun 2026 08:41:16 +0000 Subject: [PATCH] fix(store): match chat_schema.sql to sqlite 3.46+ indent The schema-dump test renders the partial-index WHERE via the sqlite3 CLI; sqlite >=3.46 wraps a multi-condition WHERE onto two lines ("IS NOT NULL" + indented "AND ...") where 3.45 kept it on one. The committed schema was generated with 3.45, so CI (newer sqlite) failed the comparison on idx_contacts_simplex_name. Regenerated with the newer formatter; only that one WHERE clause changes. --- src/Simplex/Chat/Store/SQLite/Migrations/chat_schema.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Simplex/Chat/Store/SQLite/Migrations/chat_schema.sql b/src/Simplex/Chat/Store/SQLite/Migrations/chat_schema.sql index 19275adfe4..8d95f836c9 100644 --- a/src/Simplex/Chat/Store/SQLite/Migrations/chat_schema.sql +++ b/src/Simplex/Chat/Store/SQLite/Migrations/chat_schema.sql @@ -1321,7 +1321,8 @@ ON contacts( user_id, simplex_name ) -WHERE simplex_name IS NOT NULL AND deleted = 0; +WHERE simplex_name IS NOT NULL + AND deleted = 0; CREATE UNIQUE INDEX idx_groups_simplex_name ON groups( user_id,